Comment 5 for bug 1348430

Revision history for this message
Janne Savikko (jsavikko) wrote :

For me Alan's workaround didn't work. But I found an another one that worked for me for sending @ and @home subvolumes (kernel bug tracker, comment 1 [0]):

1. Make directory for snapshots: "mkdir /.snapshots"
2. Take snapshot of subvolume, eg. @home: "btrfs subvolume snapshot -r /home /.snapshots/$(date -Is -u)@home"
3. Mount partition (not subvolume) with the btrfs FS: "mount /dev/sda1 /mnt/btrfs-data"
4. Send btrfs snapshot: "btrfs send /mnt/btrfs-data/.snapshots/2015-08-28T10:07:22+0000@home | btrfs receive /some-directory/"

Based on the comments of the above mentioned kernel bug tracker, this problem should have been fixed in btrfs-progs commit 8d68cb2bad0e8e7951811e0641188c447165141f [1].

References:
[0] https://bugzilla.kernel.org/show_bug.cgi?id=69401#c1
[1] http://git.kernel.org/cgit/linux/kernel/git/kdave/btrfs-progs.git/commit/?id=8d68cb2bad0e8e7951811e0641188c447165141f