On Wed, Oct 19, 2016 at 12:52 PM, Andrei Borzenkov <arvidj...@gmail.com> wrote: > I get "Failed to clone: Invalid cross-device link". Is it expected?
Yes, you cannot cross a MOUNTPOINT boundary with reflink. Or, for that matter, btrfs subvolume snapshot. > Basically this is (on openSUSE TW which has root on subvolume) > > mount -o subvol=/ /dev/vda1 /mnt > btrfs sub create /mnt/var/cache > cp -a --reflink=always /var/cache/* /mnt/var/cache > You *can* however cross subvolume boundaries within the same mountpoint. Try (assuming your root subvolume is @root) cp -a --reflink /mnt/@root/var/cache/* /mnt/var/cache ~ Noah -- 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