]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
btrfs: test send on subvolume with delalloc after setting it to RO mode
authorFilipe Manana <fdmanana@suse.com>
Mon, 15 Apr 2019 08:30:35 +0000 (09:30 +0100)
committerEryu Guan <guaneryu@gmail.com>
Sat, 20 Apr 2019 07:34:43 +0000 (15:34 +0800)
commit18562c4228ed7ee7c4c08eaba581318188935399
treea6c150b19d6375205bd35f97b4fd068c2faaf1b0
parentc7d96baf9ccff535d128816e3236738d7d4e0051
btrfs: test send on subvolume with delalloc after setting it to RO mode

Test that if we have a subvolume/snapshot that is writable, has a file
with unflushed delalloc (buffered writes not yet flushed), turn the
subvolume to readonly mode and then use it for send a operation, the send
stream will contain the delalloc data - that is, no data loss happens.

This currently files on btrfs (data loss) but is fixed by a patch for
the linux kernel titled:

  "Btrfs: send, flush dellaloc in order to avoid data loss"

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/btrfs/186 [new file with mode: 0755]
tests/btrfs/186.out [new file with mode: 0644]
tests/btrfs/group