Hi all,

enclose you can find a patch which improve the help of the btrfs commands and 
its man page.
Regarding the help of the btrfs command:
- moved the "subvolume set-default" command in the "subvolume" commands group
- removed a wrong new line

Regarding the btrfs command man page:
- renaming the command "device balance" in "filesystem balance" (thanks to 
Andrea Phillipp to highlight that)
- adding the entry "subvolume find-new"

Chris, you can pull the patch from the branch "help_cleanup" of the following 
repository. 

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 the 
help of btrfs command. Comments are welcome.

Regards
G.Baroncelli


diff --git a/btrfs.c b/btrfs.c
index ab5e57f..1816597 100644
--- a/btrfs.c
+++ b/btrfs.c
@@ -61,6 +61,11 @@ static struct Command commands[] = {
        { do_subvol_list, 1, "subvolume list", "<path>\n"
                "List the snapshot/subvolume of a filesystem."
        },
+       { do_set_default_subvol, 2,
+         "subvolume set-default", "<id> <path>\n"
+               "Set the subvolume of the filesystem <path> which will be 
mounted\n"
+               "as default."
+       },
        { do_find_newer, 2, "subvolume find-new", "<path> <last_gen>\n"
                "List the recently modified files in a filesystem."
        },
@@ -68,11 +73,6 @@ static struct Command commands[] = {
          "filesystem defragment", "[-vcf] [-s start] [-l len] [-t size] 
<file>|<dir> [<file>|<dir>...]\n"
                "Defragment a file or a directory."
        },
-       { do_set_default_subvol, 2,
-         "subvolume set-default", "<id> <path>\n"
-               "Set the subvolume of the filesystem <path> which will be 
mounted\n"
-               "as default."
-       },
        { do_fssync, 1,
          "filesystem sync", "<path>\n"
                "Force a sync on the filesystem <path>."
@@ -89,7 +89,7 @@ static struct Command commands[] = {
        },
        { do_df_filesystem, 1,
          "filesystem df", "<path>\n"
-               "Show space usage information for a mount point\n."
+               "Show space usage information for a mount point."
        },
        { do_balance, 1,
          "filesystem balance", "<path>\n"
diff --git a/man/btrfs.8.in b/man/btrfs.8.in
index 26ef982..249426c 100644
--- 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 <id> <path>\fP
 .PP
+\fBbtrfs\fP \fBsubvolume find-new\fP\fI <subvolume> <last_gen>\fP
+.PP
+\fBbtrfs\fP \fBfilesystem balance\fP\fI <path> \fP
+.PP
 \fBbtrfs\fP \fBfilesystem defrag\fP\fI <file>|<dir> [<file>|<dir>...]\fP
 .PP
 \fBbtrfs\fP \fBfilesystem sync\fP\fI <path> \fP
@@ -25,8 +29,6 @@ btrfs \- control a btrfs filesystem
 .PP
 \fBbtrfs\fP \fBdevice show\fP\fI <dev>|<label> [<dev>|<label>...]\fP
 .PP
-\fBbtrfs\fP \fBdevice balance\fP\fI <path> \fP
-.PP
 \fBbtrfs\fP \fBdevice add\fP\fI <dev> [<dev>..] <path> \fP
 .PP
 \fBbtrfs\fP \fBdevice delete\fP\fI <dev> [<dev>..] <path> \fP]
@@ -102,6 +104,10 @@ Set the subvolume of the filesystem \fI<path>\fR which 
is mounted as
 is returned by the \fBsubvolume list\fR command.
 .TP
 
+\fBsubvolume find-new\fR\fI <subvolume> <last_gen>\fR
+List the recently modified files in a subvolume, after \fI<last_gen>\fR ID.
+.TP
+
 \fBfilesystem defragment\fP\fI <file>|<dir> [<file>|<dir>...]\fR
 Defragment files and/or directories.
 .TP
@@ -143,7 +149,7 @@ Show the btrfs filesystem with some additional info. If 
no UUID or label is
 passed, \fBbtrfs\fR show info of all the btrfs filesystem.
 .TP
 
-\fBdevice balance\fR \fI<path>\fR
+\fBfilesystem balance\fR \fI<path>\fR
 Balance the chunks of the filesystem identified by \fI<path>\fR
 across the devices.
 .TP




-- 
gpg key@ keyserver.linux.it:Goffredo Baroncelli (ghigo) <kreijackATinwind.it>
Key fingerprint = 4769 7E51 5293 D36C 814E  C054 BF04 F161 3DC5 0512

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to