Public bug reported:

The original report can be found here:
https://bugzilla.kernel.org/show_bug.cgi?id=195597

The reproducer for this issue is:

truncate -s 10GB pool.btrfs
mkfs.btrfs pool.btrfs
mount -t btrfs pool.btrfs /mnt
btrfs subvolume create /mnt/a
btrfs subvolume snapshot /mnt/a /mnt/snap-a
btrfs send /mnt/snap-a | btrfs receive /mnt/a

should incorrectly fail with

ERROR: empty stream is not considered valid

whereas it should actually succeed. I've pushed a patch
for this to btrfs upstream 
(https://bugzilla.kernel.org/attachment.cgi?id=256157)
which is already merged. We should SRU it.

** Affects: btrfs (Ubuntu)
     Importance: Undecided
     Assignee: Stéphane Graber (stgraber)
         Status: New

** Patch added: "0001-btrfs-progs-send-fail-on-first-ENODATA-only.patch"
   
https://bugs.launchpad.net/bugs/1689621/+attachment/4874273/+files/0001-btrfs-progs-send-fail-on-first-ENODATA-only.patch

** Changed in: btrfs (Ubuntu)
     Assignee: (unassigned) => Stéphane Graber (stgraber)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1689621

Title:
  fix empty subvolume send and receive

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/btrfs/+bug/1689621/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to