removing a snapshot that is outside the subvolume directory fails, sorta

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

 



Well, it fails the way that I'm trying to do it.
kernel:            2.6.31.9-174.fc12.x86_64
btrfs-progs:     btrfs-progs-0.19-9.fc12.x86_64

On a new filesystem:

$ cd /mnt/btrfs1
$ btrfsctl -S subvol1 .
operation complete
Btrfs Btrfs v0.19
$ btrfsctl -s snapofsubvol1 subvol1
operation complete
Btrfs Btrfs v0.19
$ btrfsctl -D snapofsubvol1 subvol1
ioctl:: No such file or directory



$ btrfsctl -S subvol2 .
operation complete
Btrfs Btrfs v0.19
--------> # cd subvol2    <------------
$ btrfsctl -s snapofsubvol2 subvol2
operation complete
Btrfs Btrfs v0.19
$ btrfsctl -D snapofsubvol2 subvol2
operation complete
Btrfs Btrfs v0.19


AHA, I figured it out!

$ btrfsctl -D snapofsubvol1 subvol1/..

I don't know if that's the intended syntax or if it's accidental, but I'll go ahead and send this as an FYI if anyone has the same issue.  Maybe it's obvious to some, but it wasn't to me.
--
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