From: Hubert Kario Subject: [PATCH] explain filesystem resize devid option Date: Wed, 9 Feb 2011 11:53:26 +0100 Message-ID: <201102091153.27190.kario@wit.edu.pl> Mime-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" To: linux-btrfs@vger.kernel.org Return-path: List-ID: Adds explanation to help message and man page how to use `filesystem resize' to resize only a single device not all devices of a file system. Signed-off-by: Hubert Kario --- patch to apply cleanly requires my previous patches adding advanced help functionality btrfs.c | 10 +++++++--- man/btrfs.8.in | 6 ++++-- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/btrfs.c b/btrfs.c index bd6f6f8..a28a573 100644 --- a/btrfs.c +++ b/btrfs.c @@ -98,10 +98,14 @@ static struct Command commands[] = { NULL }, { do_resize, 2, - "filesystem resize", "[+/-][gkm]|max \n" + "filesystem resize", "[:][+|-][gkm]|max \n" "Resize the file system. If 'max' is passed, the filesystem\n" - "will occupe all available space on the device.", - NULL + "will occupy all available space on the device.", + "[:][+|-][gkm]|max \n" + "Resize the file system. If no is specified, change is\n" + "applied to every device in file system. If devid is specified\n" + "the change in size is applied only to selected device.\n" + "To get device numbers use `btrfs filesystem show\' command." }, { do_show_filesystem, 999, "filesystem show", "[|