Files
apfstests/tests/generic/353.out
T
Qu Wenruo 5c2fbcc69e generic: check fiemap SHARED flag on sync
The test case will check SHARED flag returned by fiemap ioctl on
reflinked files before and after sync.

Normally SHARED flag won't change just due to a normal sync
operation.

But btrfs doesn't handle SHARED flag well, and this time it won't
check any delayed extent tree(reverse extent searching tree)
modification, but only metadata already committed to disk.

So btrfs will not return correct SHARED flag on reflinked files if
there is no sync to commit all metadata.

This testcase will just check it.

Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
2016-06-15 15:14:35 +08:00

16 lines
393 B
Plaintext

QA output created by 353
wrote 65536/65536 bytes at offset 0
XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
linked 65536/65536 bytes at offset 0
XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
before sync:
SCRATCH_MNT/file1
0: [0..127]: 0x2001
SCRATCH_MNT/file2
0: [0..127]: 0x2001
after sync:
SCRATCH_MNT/file1
0: [0..127]: 0x2001
SCRATCH_MNT/file2
0: [0..127]: 0x2001