mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
a97909b3f9
xfs_alloc_file_space() rounds up allocation requests by the filesystem block size. Hence this commit changes the test to work with block size units rather than with a multiple of 4096 bytes. Signed-off-by: Chandan Rajendra <chandan@linux.vnet.ibm.com> Tested-by: Zorro Lang <zlang@redhat.com> Signed-off-by: Eryu Guan <guaneryu@gmail.com>
115 lines
3.1 KiB
Plaintext
115 lines
3.1 KiB
Plaintext
QA output created by 009
|
|
*** mkfs
|
|
*** mount
|
|
*** test 1 - reservations cleared on O_TRUNC
|
|
blocksize BSIZE
|
|
CMD resvsp, off=0, len=1000
|
|
MAP off=0, len=1000 [0,1000]
|
|
[ofs,count]: start..end
|
|
[0,1000]: BLOCKRANGE
|
|
MAP off=0, len=-1 [0-]
|
|
[ofs,count]: start..end
|
|
[0,1000]: BLOCKRANGE
|
|
filesize = 0
|
|
blocksize BSIZE
|
|
MAP off=0, len=-1 [0-]
|
|
[ofs,count]: start..end
|
|
filesize = 0
|
|
*** test 2 - reserve & filesize
|
|
blocksize BSIZE
|
|
CMD resvsp, off=0, len=1000
|
|
MAP off=0, len=1000 [0,1000]
|
|
[ofs,count]: start..end
|
|
[0,1000]: BLOCKRANGE
|
|
filesize = 0
|
|
*** test 3 - alloc & filesize
|
|
blocksize BSIZE
|
|
CMD allocsp, off=1000, len=-1
|
|
MAP off=1000, len=-1 [1000-]
|
|
[ofs,count]: start..end
|
|
filesize = 1000
|
|
*** test 4 - allocations cleared on O_TRUNC
|
|
blocksize BSIZE
|
|
CMD allocsp, off=1000, len=-1
|
|
MAP off=1000, len=-1 [1000-]
|
|
[ofs,count]: start..end
|
|
filesize = 1000
|
|
blocksize BSIZE
|
|
MAP off=0, len=-1 [0-]
|
|
[ofs,count]: start..end
|
|
filesize = 0
|
|
*** test 5 - reserve / unreserve
|
|
blocksize BSIZE
|
|
CMD resvsp, off=0, len=100
|
|
MAP off=0, len=100 [0,100]
|
|
[ofs,count]: start..end
|
|
[0,100]: BLOCKRANGE
|
|
CMD unresvsp, off=100, len=500
|
|
MAP off=100, len=500 [100,500]
|
|
[ofs,count]: start..end
|
|
MAP off=0, len=-1 [0-]
|
|
[ofs,count]: start..end
|
|
[0,100]: BLOCKRANGE
|
|
CMD unresvsp, off=900, len=200
|
|
MAP off=900, len=200 [900,200]
|
|
[ofs,count]: start..end
|
|
MAP off=0, len=-1 [0-]
|
|
[ofs,count]: start..end
|
|
[0,100]: BLOCKRANGE
|
|
*** test 6 - reserve adjacent
|
|
blocksize BSIZE
|
|
CMD resvsp, off=0, len=100
|
|
MAP off=0, len=100 [0,100]
|
|
[ofs,count]: start..end
|
|
[0,100]: BLOCKRANGE
|
|
CMD resvsp, off=100, len=100
|
|
MAP off=100, len=100 [100,100]
|
|
[ofs,count]: start..end
|
|
[100,100]: BLOCKRANGE
|
|
MAP off=0, len=-1 [0-]
|
|
[ofs,count]: start..end
|
|
[0,200]: BLOCKRANGE
|
|
*** test 7 - alloc
|
|
blocksize BSIZE
|
|
CMD allocsp, off=1000, len=-1
|
|
MAP off=1000, len=-1 [1000-]
|
|
[ofs,count]: start..end
|
|
MAP off=0, len=-1 [0-]
|
|
[ofs,count]: start..end
|
|
[0,1000]: BLOCKRANGE
|
|
CMD allocsp, off=2000, len=-1
|
|
MAP off=2000, len=-1 [2000-]
|
|
[ofs,count]: start..end
|
|
MAP off=0, len=-1 [0-]
|
|
[ofs,count]: start..end
|
|
[0,2000]: BLOCKRANGE
|
|
filesize = 2000
|
|
*** test 8 - alloc & truncate
|
|
blocksize BSIZE
|
|
CMD allocsp, off=1000, len=-1
|
|
MAP off=1000, len=-1 [1000-]
|
|
[ofs,count]: start..end
|
|
MAP off=0, len=-1 [0-]
|
|
[ofs,count]: start..end
|
|
[0,1000]: BLOCKRANGE
|
|
TRUNCATE off=500
|
|
MAP off=0, len=-1 [0-]
|
|
[ofs,count]: start..end
|
|
[0,500]: BLOCKRANGE
|
|
filesize = 500
|
|
*** test 9 - reserve & truncate
|
|
blocksize BSIZE
|
|
CMD resvsp, off=0, len=1000
|
|
MAP off=0, len=1000 [0,1000]
|
|
[ofs,count]: start..end
|
|
[0,1000]: BLOCKRANGE
|
|
MAP off=0, len=-1 [0-]
|
|
[ofs,count]: start..end
|
|
[0,1000]: BLOCKRANGE
|
|
TRUNCATE off=500
|
|
MAP off=0, len=-1 [0-]
|
|
[ofs,count]: start..end
|
|
[0,1000]: BLOCKRANGE
|
|
filesize = 500
|
|
*** unmount
|