Files
apfstests/tests/btrfs/186.out
T
Filipe Manana 18562c4228 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>
2019-04-20 15:34:43 +08:00

15 lines
403 B
Plaintext

QA output created by 186
Create subvolume 'SCRATCH_MNT/sv'
wrote 110592/110592 bytes at offset 0
XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
At subvol SCRATCH_MNT/sv
File content in the original filesystem:
0000000 ea ea ea ea ea ea ea ea ea ea ea ea ea ea ea ea
*
0110592
At subvol sv
File content in the new filesystem:
0000000 ea ea ea ea ea ea ea ea ea ea ea ea ea ea ea ea
*
0110592