don't assume that the pagesize is 4K.

This commit is contained in:
Nathan Scott
2002-04-04 01:20:23 +00:00
parent 2bd2a2b7b3
commit 004ff5d963
2 changed files with 26 additions and 23 deletions
+11 -11
View File
@@ -2,7 +2,7 @@ QA output created by 009
*** mkfs
*** mount
*** test 1 - reservations cleared on O_TRUNC
blocksize 4096
blocksize BSIZE
CMD resvsp, off=0, len=4096000
MAP off=0, len=4096000 [0,1000]
[ofs,count]: start..end
@@ -11,35 +11,35 @@ QA output created by 009
[ofs,count]: start..end
[0,1000]: BLOCKRANGE
filesize = 0
blocksize 4096
blocksize BSIZE
MAP off=0, len=-1 [0-]
[ofs,count]: start..end
filesize = 0
*** test 2 - reserve & filesize
blocksize 4096
blocksize BSIZE
CMD resvsp, off=0, len=4096000
MAP off=0, len=4096000 [0,1000]
[ofs,count]: start..end
[0,1000]: BLOCKRANGE
filesize = 0
*** test 3 - alloc & filesize
blocksize 4096
blocksize BSIZE
CMD allocsp, off=4096000, len=-1
MAP off=4096000, len=-1 [1000-]
[ofs,count]: start..end
filesize = 4096000
*** test 4 - allocations cleared on O_TRUNC
blocksize 4096
blocksize BSIZE
CMD allocsp, off=4096000, len=-1
MAP off=4096000, len=-1 [1000-]
[ofs,count]: start..end
filesize = 4096000
blocksize 4096
blocksize BSIZE
MAP off=0, len=-1 [0-]
[ofs,count]: start..end
filesize = 0
*** test 5 - reserve / unreserve
blocksize 4096
blocksize BSIZE
CMD resvsp, off=0, len=409600
MAP off=0, len=409600 [0,100]
[ofs,count]: start..end
@@ -57,7 +57,7 @@ filesize = 0
[ofs,count]: start..end
[0,100]: BLOCKRANGE
*** test 6 - reserve adjacent
blocksize 4096
blocksize BSIZE
CMD resvsp, off=0, len=409600
MAP off=0, len=409600 [0,100]
[ofs,count]: start..end
@@ -70,7 +70,7 @@ filesize = 0
[ofs,count]: start..end
[0,200]: BLOCKRANGE
*** test 7 - alloc
blocksize 4096
blocksize BSIZE
CMD allocsp, off=4096000, len=-1
MAP off=4096000, len=-1 [1000-]
[ofs,count]: start..end
@@ -85,7 +85,7 @@ filesize = 0
[0,2000]: BLOCKRANGE
filesize = 8192000
*** test 8 - alloc & truncate
blocksize 4096
blocksize BSIZE
CMD allocsp, off=4096000, len=-1
MAP off=4096000, len=-1 [1000-]
[ofs,count]: start..end
@@ -98,7 +98,7 @@ filesize = 8192000
[0,500]: BLOCKRANGE
filesize = 2048000
*** test 9 - reserve & truncate
blocksize 4096
blocksize BSIZE
CMD resvsp, off=0, len=4096000
MAP off=0, len=4096000 [0,1000]
[ofs,count]: start..end