# on a BB boundary
rm -f $testfile
$XFS_IO_PROG -f -d \
- -c 'pwrite -b 50k 0 50k' \
+ -c 'pwrite -b 52k 0 52k' \
-c 'truncate 100k' \
-c 'pread -b 200k 0 200k' \
$testfile | _filter_io
boundary_minus1=`expr 100 \* 1024 - 1`
echo "boundary_minus1 = $boundary_minus1"
$XFS_IO_PROG -f -d \
- -c 'pwrite -b 50k 0 50k' \
+ -c 'pwrite -b 52k 0 52k' \
-c "truncate $boundary_minus1" \
-c 'pread -b 200k 0 200k' \
$testfile | _filter_io
boundary_plus1=`expr 100 \* 1024 + 1`
echo "boundary_plus1 = $boundary_plus1"
$XFS_IO_PROG -f -d \
- -c 'pwrite -b 50k 0 50k' \
+ -c 'pwrite -b 52k 0 52k' \
-c "truncate $boundary_plus1" \
-c 'pread -b 200k 0 200k' \
$testfile | _filter_io
$XFS_IO_PROG -f -d \
-c 'resvsp 0 100k' \
-c 'truncate 100k' \
- -c 'pwrite -b 50k 0 50k' \
+ -c 'pwrite -b 52k 0 52k' \
-c 'pread -b 200k 0 200k' \
$testfile | _filter_io
$XFS_IO_PROG -c 'bmap -vp' $testfile | _filter_bmap
$XFS_IO_PROG -f -d \
-c "resvsp 0 $boundary_minus1" \
-c "truncate $boundary_minus1" \
- -c 'pwrite -b 50k 0 50k' \
+ -c 'pwrite -b 52k 0 52k' \
-c 'pread -b 200k 0 200k' \
$testfile | _filter_io
$XFS_IO_PROG -c 'bmap -vp' $testfile | _filter_bmap
$XFS_IO_PROG -f -d \
-c "resvsp 0 $boundary_plus1" \
-c "truncate $boundary_plus1" \
- -c 'pwrite -b 50k 0 50k' \
+ -c 'pwrite -b 52k 0 52k' \
-c 'pread -b 200k 0 200k' \
$testfile | _filter_io
$XFS_IO_PROG -c 'bmap -vp' $testfile | _filter_bmap
QA output created by 164
-wrote 51200/51200 bytes at offset 0
-50 KiB, 1 ops
+wrote 53248/53248 bytes at offset 0
+52 KiB, 1 ops
read 102400/204800 bytes at offset 0
100 KiB, 1 ops
boundary_minus1 = 102399
-wrote 51200/51200 bytes at offset 0
-50 KiB, 1 ops
+wrote 53248/53248 bytes at offset 0
+52 KiB, 1 ops
read 102399/204800 bytes at offset 0
100 KiB, 1 ops
boundary_plus1 = 102401
-wrote 51200/51200 bytes at offset 0
-50 KiB, 1 ops
+wrote 53248/53248 bytes at offset 0
+52 KiB, 1 ops
read 102401/204800 bytes at offset 0
100 KiB, 1 ops
-wrote 51200/51200 bytes at offset 0
-50 KiB, 1 ops
+wrote 53248/53248 bytes at offset 0
+52 KiB, 1 ops
read 102400/204800 bytes at offset 0
100 KiB, 1 ops
boundary_minus1 = 102399
-wrote 51200/51200 bytes at offset 0
-50 KiB, 1 ops
+wrote 53248/53248 bytes at offset 0
+52 KiB, 1 ops
read 102399/204800 bytes at offset 0
100 KiB, 1 ops
boundary_plus1 = 102401
-wrote 51200/51200 bytes at offset 0
-50 KiB, 1 ops
+wrote 53248/53248 bytes at offset 0
+52 KiB, 1 ops
read 102401/204800 bytes at offset 0
100 KiB, 1 ops