2009/12/12 Goffredo Baroncelli <kreij...@gmail.com>:
> Hi all,
>
> I found the help of the btrfctl command very poor. I rewrite some help
> messages and correct (or added when needed) the check of the number of
> parameter.
>
> Please apply.
>
>
> * Improve/correct the check of the arguments number
> * Revise the command help
> ---
>  btrfsctl.c |   33 +++++++++++++++++++--------------
>  1 files changed, 19 insertions(+), 14 deletions(-)
>
> diff --git a/btrfsctl.c b/btrfsctl.c
> index 66c4e89..0e5ce79 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 of dir\n");

Hi, should it be "delete a snapshot or subvolume _in_ dir"?

I notice that I can only snapshot for a whole device but not a dir,
and the snapshot file can be moved to other place after created.
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to