Files
apfstests/tests/xfs/420.out
T
Darrick J. Wong ca9c677346 xfs: seek data and holes that are in the CoW fork only
Create a file with a hole in the data fork and CoW reservations in the
same region in the CoW fork.  Ensure that SEEK_HOLE/DATA find the data.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
2017-06-22 23:25:32 +08:00

53 lines
1.3 KiB
Plaintext

QA output created by 420
Format and mount
Create the original files
Compare files
c2803804acc9936eef8aab42c119bfac SCRATCH_MNT/test-420/file1
c2803804acc9936eef8aab42c119bfac SCRATCH_MNT/test-420/file2
c2803804acc9936eef8aab42c119bfac SCRATCH_MNT/test-420/file3
CoW the shared part then write into the empty part
Seek holes and data in file1
Whence Result
DATA 0
HOLE 131072
Seek holes and data in file2
Whence Result
DATA 0
HOLE 131072
DATA 196608
HOLE 262144
Compare files
c2803804acc9936eef8aab42c119bfac SCRATCH_MNT/test-420/file1
017c08a9320aad844ce86aa9631afb98 SCRATCH_MNT/test-420/file2
017c08a9320aad844ce86aa9631afb98 SCRATCH_MNT/test-420/file3
sync filesystem
Seek holes and data in file1
Whence Result
DATA 0
HOLE 131072
Seek holes and data in file2
Whence Result
DATA 0
HOLE 131072
DATA 196608
HOLE 262144
Compare files
c2803804acc9936eef8aab42c119bfac SCRATCH_MNT/test-420/file1
017c08a9320aad844ce86aa9631afb98 SCRATCH_MNT/test-420/file2
017c08a9320aad844ce86aa9631afb98 SCRATCH_MNT/test-420/file3
Remount
Seek holes and data in file1
Whence Result
DATA 0
HOLE 131072
Seek holes and data in file2
Whence Result
DATA 0
HOLE 131072
DATA 196608
HOLE 262144
Compare files
c2803804acc9936eef8aab42c119bfac SCRATCH_MNT/test-420/file1
017c08a9320aad844ce86aa9631afb98 SCRATCH_MNT/test-420/file2
017c08a9320aad844ce86aa9631afb98 SCRATCH_MNT/test-420/file3