mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
ca9c677346
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>
53 lines
1.3 KiB
Plaintext
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
|