From patchwork Sun Dec 13 11:38:58 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Goffredo Baroncelli X-Patchwork-Id: 66986 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 nBDBdF8b026268 for ; Sun, 13 Dec 2009 11:39:15 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752568AbZLMLjM (ORCPT ); Sun, 13 Dec 2009 06:39:12 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752565AbZLMLjM (ORCPT ); Sun, 13 Dec 2009 06:39:12 -0500 Received: from mail-fx0-f213.google.com ([209.85.220.213]:41227 "HELO mail-fx0-f213.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1752552AbZLMLjK (ORCPT ); Sun, 13 Dec 2009 06:39:10 -0500 Received: by fxm5 with SMTP id 5so2564711fxm.28 for ; Sun, 13 Dec 2009 03:39:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:references:in-reply-to:mime-version:content-type :content-transfer-encoding:message-id; bh=DKRXWWcWn92fF5WeMoHQjgbWnHUwACsf1NqSfbFGXLM=; b=WWqAp9YFWPhTW0dC4FcDymMsA5WpF92OQjOGeFhvHZYZ7D/vmLet4PQTENgxl/TN0g lKpCjcJGw28UtkpMW1fzgJsYWy4RTM8LQIJNwyNcvCD3/47GJygRIfxfwnCijKe0segQ 37bqB9w2a1EEjrSsMmoaJSwfWVHULkif+SsWI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version :content-type:content-transfer-encoding:message-id; b=q8GDlooaX+URljup3MLm+i5pGYmVon7b3vL48b/fNUZc/nEGo/r4lG3th1nzGoQl5c dcxR21oCDRxlUIcUnTdA0DHOTDurZ/KRPg4TRJ6wM0zjFQ2vN+04SQ1EeU4QbWAUWdyz 2hmYPTECHLF23Jb+TrK1zUTrmMuH/A1czR2AM= Received: by 10.87.40.30 with SMTP id s30mr4346345fgj.25.1260704347202; Sun, 13 Dec 2009 03:39:07 -0800 (PST) Received: from venice.localnet (host149-218-dynamic.11-87-r.retail.telecomitalia.it [87.11.218.149]) by mx.google.com with ESMTPS id e3sm2991232fga.1.2009.12.13.03.39.06 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 13 Dec 2009 03:39:06 -0800 (PST) From: Goffredo Baroncelli To: linux-btrfs@vger.kernel.org Subject: Re: [PATCH][TRIVIAL] Improve the btrfsctl help Date: Sun, 13 Dec 2009 12:38:58 +0100 User-Agent: KMail/1.12.2 (Linux/2.6.31-17-generic; KDE/4.3.2; x86_64; ; ) References: <200912121639.41192.kreijack@libero.it> <9bd6b5360912130005m2bf7993ar7df5244945504534@mail.gmail.com> In-Reply-To: <9bd6b5360912130005m2bf7993ar7df5244945504534@mail.gmail.com> MIME-Version: 1.0 Message-Id: <200912131239.06192.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..6f6e8e6 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 in dir\n"); printf("%s\n", BTRFS_BUILD_VERSION); exit(1);