Re: Removing snapshots

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Here's what I'm getting on ubuntu-10.04 with standard tools, (/sbin/btrfsctl), and freshly built tools, (/usr/local/bin/btrfsctl).

Are we sure that the btrfs kernel module in this release is supporting the right ioctls?

--rich

rich@diamonds> pwd
/home/rich
rich@diamonds> mount | grep /home
/dev/sda7 on /home type btrfs (rw,noatime)
rich@diamonds> /sbin/btrfsctl -s snaptest /home
operation complete
Btrfs Btrfs v0.19
rich@diamonds> ls -lasd snaptest
4 drwxr-xr-x 1 root root 52 2010-06-21 16:13 snaptest
rich@diamonds> /sbin/btrfsctl
no valid commands given
usage: btrfsctl [ -d file|dir] [ -s snap_name subvol|tree ]
                [-r size] [-A device] [-a] [-c]
        -d filename: defragments one file
        -d directory: defragments the entire Btree
        -s snap_name dir: creates a new snapshot of dir
        -S subvol_name dir: creates a new subvolume
        -r [+-]size[gkm]: resize the FS by size amount
        -A device: scans the device file for a Btrfs filesystem
        -a: scans all devices for Btrfs filesystems
        -c: forces a single FS sync
Btrfs Btrfs v0.19
rich@diamonds> /usr/local/bin/btrfsctl
no valid commands given
usage: btrfsctl [ -d file|dir] [ -s snap_name subvol|tree ]
                [-r size] [-A device] [-a] [-c] [-D dir .]
        -d filename: defragments one file
        -d directory: defragments the entire Btree
        -s snap_name dir: creates a new snapshot of dir
        -S subvol_name dir: creates a new subvolume
        -r [+-]size[gkm]: resize the FS by size amount
        -A device: scans the device file for a Btrfs filesystem
        -a: scans all devices for Btrfs filesystems
        -c: forces a single FS sync
        -D: delete snapshot
-m [tree id] directory: set the default mounted subvolume to the [tree id] or the directory
Btrfs v0.19-16-g075587c
rich@diamonds> /usr/local/bin/btrfsctl -D snaptest
ioctl:: Operation not permitted
rich@diamonds> sudo /usr/local/bin/btrfsctl -D snaptest
ioctl:: No such file or directory
rich@diamonds> sudo /usr/local/bin/btrfsctl -D snaptest /home
ioctl:: No such file or directory
rich@diamonds> sudo /usr/local/bin/btrfsctl -D /home snaptest
ioctl:: Invalid argument

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux