From: Goffredo Baroncelli Subject: [PATCH][btrfs progs] Update/clean up btrfs help and man page Date: Mon, 13 Sep 2010 21:23:54 +0200 Message-ID: <201009132124.09118.kreijack@libero.it> Reply-To: kreijack@libero.it Mime-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2255650.EI7EpL15f5"; protocol="application/pgp-signature"; micalg=pgp-sha1 Cc: Andreas Philipp To: linux-btrfs@vger.kernel.org, Chris Mason Return-path: List-ID: --nextPart2255650.EI7EpL15f5 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi all, enclose you can find a patch which improve the help of the btrfs commands a= nd=20 its man page. Regarding the help of the btrfs command: =2D moved the "subvolume set-default" command in the "subvolume" commands g= roup =2D removed a wrong new line Regarding the btrfs command man page: =2D renaming the command "device balance" in "filesystem balance" (thanks t= o=20 Andrea Phillipp to highlight that) =2D adding the entry "subvolume find-new" Chris, you can pull the patch from the branch "help_cleanup" of the followi= ng=20 repository.=20 http://cassiopea.homelinux.net/git/btrfs-progs-unstable-all.git The patch is very simple: only update the man page and move some lines in t= he=20 help of btrfs command. Comments are welcome. Regards G.Baroncelli diff --git a/btrfs.c b/btrfs.c index ab5e57f..1816597 100644 =2D-- a/btrfs.c +++ b/btrfs.c @@ -61,6 +61,11 @@ static struct Command commands[] =3D { { do_subvol_list, 1, "subvolume list", "\n" "List the snapshot/subvolume of a filesystem." }, + { do_set_default_subvol, 2, + "subvolume set-default", " \n" + "Set the subvolume of the filesystem which will be=20 mounted\n" + "as default." + }, { do_find_newer, 2, "subvolume find-new", " \n" "List the recently modified files in a filesystem." }, @@ -68,11 +73,6 @@ static struct Command commands[] =3D { "filesystem defragment", "[-vcf] [-s start] [-l len] [-t size]=20 | [|...]\n" "Defragment a file or a directory." }, =2D { do_set_default_subvol, 2, =2D "subvolume set-default", " \n" =2D "Set the subvolume of the filesystem which will be=20 mounted\n" =2D "as default." =2D }, { do_fssync, 1, "filesystem sync", "\n" "Force a sync on the filesystem ." @@ -89,7 +89,7 @@ static struct Command commands[] =3D { }, { do_df_filesystem, 1, "filesystem df", "\n" =2D "Show space usage information for a mount point\n." + "Show space usage information for a mount point." }, { do_balance, 1, "filesystem balance", "\n" diff --git a/man/btrfs.8.in b/man/btrfs.8.in index 26ef982..249426c 100644 =2D-- a/man/btrfs.8.in +++ b/man/btrfs.8.in @@ -15,6 +15,10 @@ btrfs \- control a btrfs filesystem .PP \fBbtrfs\fP \fBsubvolume set-default\fP\fI \fP .PP +\fBbtrfs\fP \fBsubvolume find-new\fP\fI \fP +.PP +\fBbtrfs\fP \fBfilesystem balance\fP\fI \fP +.PP \fBbtrfs\fP \fBfilesystem defrag\fP\fI | [|...]\fP .PP \fBbtrfs\fP \fBfilesystem sync\fP\fI \fP @@ -25,8 +29,6 @@ btrfs \- control a btrfs filesystem .PP \fBbtrfs\fP \fBdevice show\fP\fI |