mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
Add the new tests and their golden outputs.
Merge of master-melb:xfs-cmds:29445a by kenmcd. New Test
This commit is contained in:
@@ -0,0 +1,63 @@
|
||||
QA output created by 175
|
||||
-- test dmpunch-hole without an extent size hint --
|
||||
# testing 4096 0 256 240 16 d 0 256 w p noresv ...
|
||||
+ mounting with dmapi enabled
|
||||
# spawning test file with 4096 256 0 punch_test_file noresv
|
||||
[0] punch_test_file
|
||||
+ not using resvsp at file creation
|
||||
# writing with 4096 0 256 punch_test_file
|
||||
# showing file state punch_test_file
|
||||
punch_test_file:
|
||||
EXT: FILE-OFFSET BLOCK-RANGE AG AG-OFFSET TOTAL FLAGS
|
||||
0: [0..2047]: 96..2143 0 (96..2143) 2048 00000
|
||||
FLAG Values:
|
||||
010000 Unwritten preallocated extent
|
||||
001000 Doesn't begin on stripe unit
|
||||
000100 Doesn't end on stripe unit
|
||||
000010 Doesn't begin on stripe width
|
||||
000001 Doesn't end on stripe width
|
||||
# punching with 4096 240 16 d punch_test_file
|
||||
+ hole punch using dmapi punch_hole
|
||||
# showing file state punch_test_file
|
||||
punch_test_file:
|
||||
EXT: FILE-OFFSET BLOCK-RANGE AG AG-OFFSET TOTAL FLAGS
|
||||
0: [0..1919]: 96..2015 0 (96..2015) 1920 00000
|
||||
1: [1920..2047]: hole 128
|
||||
FLAG Values:
|
||||
010000 Unwritten preallocated extent
|
||||
001000 Doesn't begin on stripe unit
|
||||
000100 Doesn't end on stripe unit
|
||||
000010 Doesn't begin on stripe width
|
||||
000001 Doesn't end on stripe width
|
||||
|
||||
-- this time use a 4k (one block) extent size hint --
|
||||
# testing 4096 1 256 240 16 d 0 256 w p noresv ...
|
||||
+ mounting with dmapi enabled
|
||||
# spawning test file with 4096 256 1 punch_test_file noresv
|
||||
+ setting extent size hint to 4096
|
||||
[4096] punch_test_file
|
||||
+ not using resvsp at file creation
|
||||
# writing with 4096 0 256 punch_test_file
|
||||
# showing file state punch_test_file
|
||||
punch_test_file:
|
||||
EXT: FILE-OFFSET BLOCK-RANGE AG AG-OFFSET TOTAL FLAGS
|
||||
0: [0..2047]: 96..2143 0 (96..2143) 2048 00000
|
||||
FLAG Values:
|
||||
010000 Unwritten preallocated extent
|
||||
001000 Doesn't begin on stripe unit
|
||||
000100 Doesn't end on stripe unit
|
||||
000010 Doesn't begin on stripe width
|
||||
000001 Doesn't end on stripe width
|
||||
# punching with 4096 240 16 d punch_test_file
|
||||
+ hole punch using dmapi punch_hole
|
||||
# showing file state punch_test_file
|
||||
punch_test_file:
|
||||
EXT: FILE-OFFSET BLOCK-RANGE AG AG-OFFSET TOTAL FLAGS
|
||||
0: [0..1919]: 96..2015 0 (96..2015) 1920 00000
|
||||
1: [1920..2047]: hole 128
|
||||
FLAG Values:
|
||||
010000 Unwritten preallocated extent
|
||||
001000 Doesn't begin on stripe unit
|
||||
000100 Doesn't end on stripe unit
|
||||
000010 Doesn't begin on stripe width
|
||||
000001 Doesn't end on stripe width
|
||||
Reference in New Issue
Block a user