btrfs-progs: improve -D usage description
Hi,
when trying out snapshot removal (yeah!) from the for-linus branch I thought that the help message of btrfsctl could be a bit better. Also the manpage of btrfsctl lacks information about it.
I attached two micro patches against btrfs-progs-unstable.
Cheers - Fuddl
man/btrfsctl.8.in +4 -0
@@ -10,6 +10,7 @@ btrfsctl \- control a btrfs filesystem [ \fB \-A\fP\fI device\fP ] [ \fB \-a\fP ] [ \fB \-c\fP ] +[ \fB \-D\fP\fI snapshot-name directory\fP ] .SH DESCRIPTION .B btrfsctl is used to control the filesystem and the files and directories stored. It is the tool to create a new snapshot for the filesystem.
@@ -35,6 +36,9 @@ Scans all devices present in the system for btrfs filesystem. .TP \fB\-c\fR Forces a filesystem sync. +.TP +\fB\-D\fR \fIsnapshot-name directory\fR +Deletes a \fIsnapshot\fP in the specified \fIdirectory\fP. .SH AVAILABILITY .B btrfsctl is part of btrfs-progs. Btrfs is currently under heavy development,
btrfsctl.c +2 -2
@@ -46,7 +46,7 @@ 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 (" [-r size] [-A device] [-a] [-c] [-D snap_name dir]\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" );
@@ -55,7 +55,7 @@ static void print_usage(void)printf ("\t-A device: scans the device file for a Btrfs filesystem\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-D: snap_name dir: delete named snapshot in directory dir\n" );printf ("%s\n" ,BTRFS_BUILD_VERSION );exit (1 ); }