Thomas Scheiblauer
2013-Nov-29 11:59 UTC
[BUG] btrfs-progs: btrfs send does not work inside mounted non root subvolume
When operating from inside a mounted btrfs subvolume which is not the root subvolume "btrfs send" exits with the error: ERROR: open <subvolume path> failed. No such file or directory Steps to reproduce: 1. mkfs.btrfs /dev/sda1 2. mount /dev/sda1 /mnt 3. btrfs subvolume create /mnt/foo 4. umount /mnt 5. mount -o subvol=foo /dev/sda1 /mnt 6. btrfs subvolume snapshot -r /mnt /mnt/snap 7. btrfs send /mnt/snap > /dev/null -> ERROR: open foo/snap failed. No such file or directory -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Shilong Wang
2013-Nov-29 14:08 UTC
Re: [BUG] btrfs-progs: btrfs send does not work inside mounted non root subvolume
Hello Thomas, 2013/11/29 Thomas Scheiblauer <tom@sharkbay.at>:> When operating from inside a mounted btrfs subvolume which is not the > root subvolume "btrfs send" exits with the error: > ERROR: open <subvolume path> failed. No such file or directory > > Steps to reproduce: > 1. mkfs.btrfs /dev/sda1 > 2. mount /dev/sda1 /mnt > 3. btrfs subvolume create /mnt/foo > 4. umount /mnt > 5. mount -o subvol=foo /dev/sda1 /mnt > 6. btrfs subvolume snapshot -r /mnt /mnt/snap > 7. btrfs send /mnt/snap > /dev/null > -> ERROR: open foo/snap failed. No such file or directoryThe problem is that we will try to use btrfs internal path(foo/snap) to open the sub-volume, this is not right here, i will send a patch for this, thanks for reporting. Thanks, Wang> > > > -- > To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html-- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html