From patchwork Sat Dec 12 15:39:27 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Goffredo Baroncelli X-Patchwork-Id: 66965 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nBD2SwHR013493 for ; Sun, 13 Dec 2009 02:28:58 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757463AbZLMC25 (ORCPT ); Sat, 12 Dec 2009 21:28:57 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932190AbZLMC25 (ORCPT ); Sat, 12 Dec 2009 21:28:57 -0500 Received: from mail-bw0-f227.google.com ([209.85.218.227]:55521 "HELO mail-bw0-f227.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1753658AbZLMC24 (ORCPT ); Sat, 12 Dec 2009 21:28:56 -0500 Received: by bwz27 with SMTP id 27so1368864bwz.21 for ; Sat, 12 Dec 2009 18:28:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:to:subject:from:date :mime-version:content-type:content-transfer-encoding:message-id; bh=LVYQjvqVXUzlcr+RlhNWE5B4lusBzNzd5HzM6YfJetk=; b=QN774mQAllrm1uN4WE7GN0KJaQVr0WoVnvG5po5ufImX5KvePzA+sLyVVhYVQg/5cR J7rAoAjk2r+pnd4wkp/zfag7e7aw7700iDZuTkEE36ZdYRQ9AaXj9jE/QV26fIs8enby 0rcdQKYyTWyEVLumjtxR5oPaI3DOOxpc0C9f8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=to:subject:from:date:mime-version:content-type :content-transfer-encoding:message-id; b=dQ/R1fIdHD0QMl4Iq/tzF1sogcoIZo5SqHWqTMp2n4KsUD12m632FRHocr55WxkWFK xQuKZBImhHZh1LVRX2N8A1ksKK0RLR29ml7sBQdz1dfJusrAEmj/taJwVrqePbpNx3mj N1eNnBbK/t0ezZsHurPdsbKbA1J8qR7HTPQYM= Received: by 10.204.34.18 with SMTP id j18mr1567998bkd.38.1260632383400; Sat, 12 Dec 2009 07:39:43 -0800 (PST) Received: from venice.localnet (host214-225-dynamic.11-87-r.retail.telecomitalia.it [87.11.225.214]) by mx.google.com with ESMTPS id 14sm770219bwz.5.2009.12.12.07.39.42 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 12 Dec 2009 07:39:43 -0800 (PST) To: linux-btrfs@vger.kernel.org Subject: [PATCH][TRIVIAL] Improve the btrfsctl help From: Goffredo Baroncelli Date: Sat, 12 Dec 2009 16:39:27 +0100 MIME-Version: 1.0 Message-Id: <200912121639.41192.kreijack@libero.it> Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org diff --git a/btrfsctl.c b/btrfsctl.c index 66c4e89..0e5ce79 100644 --- a/btrfsctl.c +++ b/btrfsctl.c @@ -45,17 +45,18 @@ static inline int ioctl(int fd, int define, void *arg) { return 0; } static void print_usage(void) { - printf("usage: btrfsctl [ -d file|dir] [ -s snap_name subvol|tree ]\n"); - printf(" [-r size] [-A device] [-a] [-c] [-D dir .]\n"); + printf("usage: btrfsctl [-d file|dir] [-s snap_name subvol]\n"); + printf(" [-S vol_name dir] [-a] [-r size subvol]\n"); + printf(" [-A device] [-c subvol] [-D name subvol]\n"); printf("\t-d filename: defragments one file\n"); printf("\t-d directory: defragments the entire Btree\n"); - printf("\t-s snap_name dir: creates a new snapshot of dir\n"); - printf("\t-S subvol_name dir: creates a new subvolume\n"); - printf("\t-r [+-]size[gkm]: resize the FS by size amount\n"); - printf("\t-A device: scans the device file for a Btrfs filesystem\n"); + printf("\t-s snap_name subvol: creates a new snapshot of subvol\n"); + printf("\t-S subvol_name dir: creates a new subvolume in dir\n"); printf("\t-a: scans all devices for Btrfs filesystems\n"); - printf("\t-c: forces a single FS sync\n"); - printf("\t-D: delete snapshot\n"); + printf("\t-r [+-]size[gkm] subvol: resize the FS by size amount\n"); + printf("\t-A device: scans the device file for a Btrfs filesystem\n"); + printf("\t-c subvol: forces a single FS sync\n"); + printf("\t-D name dir: delete a snapshot or subvolume of dir\n"); printf("%s\n", BTRFS_BUILD_VERSION); exit(1);