chandan
2013-Aug-08 06:10 UTC
[PATCH] _test_generic_punch: Extend $testfile''s size to work with 64k block.
From cf6e1fc3a8d7806a97055b5f483cf50f58c8294f Mon Sep 17 00:00:00 2001 From: chandan <chandan@linux.vnet.ibm.com> Date: Thu, 8 Aug 2013 11:33:10 +0530 Subject: [PATCH] _test_generic_punch: Extend $testfile''s size to work with 64k block. The current script does not work with 64k block size. This patch fixes it by creating a larger $testfile. Signed-off-by: chandan <chandan@linux.vnet.ibm.com> --- common/punch | 119 +++++++------ tests/generic/255.out | 476 +++++++++++++++++++++++++------------------------- tests/xfs/242.out | 118 ++++++------- tests/xfs/252.out | 476 +++++++++++++++++++++++++------------------------- 4 files changed, 594 insertions(+), 595 deletions(-) diff --git a/common/punch b/common/punch index d8f73d0..e6f0b2a 100644 --- a/common/punch +++ b/common/punch @@ -316,8 +316,8 @@ _test_generic_punch() if [ "$remove_testfile" ]; then rm -f $testfile fi - $XFS_IO_PROG -f -c "truncate 20k" \ - -c "$zero_cmd 4k 8k" \ + $XFS_IO_PROG -f -c "truncate 320k" \ + -c "$zero_cmd 64k 128k" \ -c "$map_cmd -v" $testfile | $filter_cmd [ $? -ne 0 ] && die_now _md5_checksum $testfile @@ -326,9 +326,9 @@ _test_generic_punch() if [ "$remove_testfile" ]; then rm -f $testfile fi - $XFS_IO_PROG -f -c "truncate 20k" \ - -c "pwrite 0 20k" $sync_cmd \ - -c "$zero_cmd 4k 8k" \ + $XFS_IO_PROG -f -c "truncate 320k" \ + -c "pwrite 0 320k" $sync_cmd \ + -c "$zero_cmd 64k 128k" \ -c "$map_cmd -v" $testfile | $filter_cmd [ $? -ne 0 ] && die_now _md5_checksum $testfile @@ -337,9 +337,9 @@ _test_generic_punch() if [ "$remove_testfile" ]; then rm -f $testfile fi - $XFS_IO_PROG -f -c "truncate 20k" \ - -c "$alloc_cmd 0 20k" \ - -c "$zero_cmd 4k 8k" \ + $XFS_IO_PROG -f -c "truncate 320k" \ + -c "$alloc_cmd 0 320k" \ + -c "$zero_cmd 64k 128k" \ -c "$map_cmd -v" $testfile | $filter_cmd [ $? -ne 0 ] && die_now _md5_checksum $testfile @@ -348,9 +348,9 @@ _test_generic_punch() if [ "$remove_testfile" ]; then rm -f $testfile fi - $XFS_IO_PROG -f -c "truncate 20k" \ - -c "pwrite 8k 8k" $sync_cmd \ - -c "$zero_cmd 4k 8k" \ + $XFS_IO_PROG -f -c "truncate 320k" \ + -c "pwrite 128k 128k" $sync_cmd \ + -c "$zero_cmd 64k 128k" \ -c "$map_cmd -v" $testfile | $filter_cmd [ $? -ne 0 ] && die_now _md5_checksum $testfile @@ -359,9 +359,9 @@ _test_generic_punch() if [ "$remove_testfile" ]; then rm -f $testfile fi - $XFS_IO_PROG -f -c "truncate 20k" \ - -c "$alloc_cmd 8k 8k" \ - -c "$zero_cmd 4k 8k" \ + $XFS_IO_PROG -f -c "truncate 320k" \ + -c "$alloc_cmd 128k 128k" \ + -c "$zero_cmd 64k 128k" \ -c "$map_cmd -v" $testfile | $filter_cmd [ $? -ne 0 ] && die_now _md5_checksum $testfile @@ -370,9 +370,9 @@ _test_generic_punch() if [ "$remove_testfile" ]; then rm -f $testfile fi - $XFS_IO_PROG -f -c "truncate 20k" \ - -c "pwrite 0 8k" $sync_cmd \ - -c "$zero_cmd 4k 8k" \ + $XFS_IO_PROG -f -c "truncate 320k" \ + -c "pwrite 0 128k" $sync_cmd \ + -c "$zero_cmd 64k 128k" \ -c "$map_cmd -v" $testfile | $filter_cmd [ $? -ne 0 ] && die_now _md5_checksum $testfile @@ -381,10 +381,10 @@ _test_generic_punch() if [ "$remove_testfile" ]; then rm -f $testfile fi - $XFS_IO_PROG -f -c "truncate 20k" \ - -c "pwrite 0 8k" $sync_cmd \ - -c "$alloc_cmd 8k 8k" \ - -c "$zero_cmd 4k 8k" \ + $XFS_IO_PROG -f -c "truncate 320k" \ + -c "pwrite 0 128k" $sync_cmd \ + -c "$alloc_cmd 128k 128k" \ + -c "$zero_cmd 64k 128k" \ -c "$map_cmd -v" $testfile | $filter_cmd [ $? -ne 0 ] && die_now _md5_checksum $testfile @@ -393,9 +393,9 @@ _test_generic_punch() if [ "$remove_testfile" ]; then rm -f $testfile fi - $XFS_IO_PROG -f -c "truncate 20k" \ - -c "$alloc_cmd 0 8k" \ - -c "$zero_cmd 4k 8k" \ + $XFS_IO_PROG -f -c "truncate 320k" \ + -c "$alloc_cmd 0 128k" \ + -c "$zero_cmd 64k 128k" \ -c "$map_cmd -v" $testfile | $filter_cmd [ $? -ne 0 ] && die_now _md5_checksum $testfile @@ -404,10 +404,10 @@ _test_generic_punch() if [ "$remove_testfile" ]; then rm -f $testfile fi - $XFS_IO_PROG -f -c "truncate 20k" \ - -c "$alloc_cmd 0 8k" \ - -c "pwrite 8k 8k" $sync_cmd \ - -c "$zero_cmd 4k 8k" \ + $XFS_IO_PROG -f -c "truncate 320k" \ + -c "$alloc_cmd 0 128k" \ + -c "pwrite 128k 128k" $sync_cmd \ + -c "$zero_cmd 64k 128k" \ -c "$map_cmd -v" $testfile | $filter_cmd [ $? -ne 0 ] && die_now _md5_checksum $testfile @@ -416,9 +416,9 @@ _test_generic_punch() if [ "$remove_testfile" ]; then rm -f $testfile fi - $XFS_IO_PROG -f -c "truncate 20k" \ - -c "pwrite 8k 4k" $sync_cmd \ - -c "$zero_cmd 4k 12k" \ + $XFS_IO_PROG -f -c "truncate 320k" \ + -c "pwrite 128k 64k" $sync_cmd \ + -c "$zero_cmd 64k 192k" \ -c "$map_cmd -v" $testfile | $filter_cmd [ $? -ne 0 ] && die_now _md5_checksum $testfile @@ -427,12 +427,12 @@ _test_generic_punch() if [ "$remove_testfile" ]; then rm -f $testfile fi - $XFS_IO_PROG -f -c "truncate 20k" \ - -c "$alloc_cmd 0 20k" \ - -c "pwrite 0 8k" \ - -c "pwrite 12k 8k" $sync_cmd \ - -c "$punch_cmd 8k 4k" \ - -c "$zero_cmd 4k 12k" \ + $XFS_IO_PROG -f -c "truncate 320k" \ + -c "$alloc_cmd 0 320k" \ + -c "pwrite 0 128k" \ + -c "pwrite 192k 128k" $sync_cmd \ + -c "$punch_cmd 128k 64k" \ + -c "$zero_cmd 64k 192k" \ -c "$map_cmd -v" $testfile | $filter_cmd [ $? -ne 0 ] && die_now _md5_checksum $testfile @@ -441,10 +441,10 @@ _test_generic_punch() if [ "$remove_testfile" ]; then rm -f $testfile fi - $XFS_IO_PROG -f -c "truncate 20k" \ - -c "$alloc_cmd 0 20k" \ - -c "pwrite 8k 4k" $sync_cmd \ - -c "$zero_cmd 4k 12k" \ + $XFS_IO_PROG -f -c "truncate 320k" \ + -c "$alloc_cmd 0 320k" \ + -c "pwrite 128k 64k" $sync_cmd \ + -c "$zero_cmd 64k 192k" \ -c "$map_cmd -v" $testfile | $filter_cmd [ $? -ne 0 ] && die_now _md5_checksum $testfile @@ -453,20 +453,20 @@ _test_generic_punch() if [ "$remove_testfile" ]; then rm -f $testfile fi - $XFS_IO_PROG -f -c "truncate 20k" \ - -c "$alloc_cmd 0 20k" \ - -c "pwrite 0k 8k" $sync_cmd \ - -c "pwrite 12k 8k" -c "fsync" \ - -c "$zero_cmd 4k 12k" \ + $XFS_IO_PROG -f -c "truncate 320k" \ + -c "$alloc_cmd 0 320k" \ + -c "pwrite 0k 128k" $sync_cmd \ + -c "pwrite 192k 128k" -c "fsync" \ + -c "$zero_cmd 64k 192k" \ -c "$map_cmd -v" $testfile | $filter_cmd [ $? -ne 0 ] && die_now _md5_checksum $testfile echo " 14. data -> hole @ EOF" rm -f $testfile - $XFS_IO_PROG -f -c "truncate 20k" \ - -c "pwrite 0 20k" $sync_cmd \ - -c "$zero_cmd 12k 8k" \ + $XFS_IO_PROG -f -c "truncate 320k" \ + -c "pwrite 0 320k" $sync_cmd \ + -c "$zero_cmd 192k 128k" \ -c "$map_cmd -v" $testfile | $filter_cmd [ $? -ne 0 ] && die_now _md5_checksum $testfile @@ -475,9 +475,9 @@ _test_generic_punch() if [ "$remove_testfile" ]; then rm -f $testfile fi - $XFS_IO_PROG -f -c "truncate 20k" \ - -c "pwrite 0 20k" $sync_cmd \ - -c "$zero_cmd 0k 8k" \ + $XFS_IO_PROG -f -c "truncate 320k" \ + -c "pwrite 0 320k" $sync_cmd \ + -c "$zero_cmd 0k 128k" \ -c "$map_cmd -v" $testfile | $filter_cmd [ $? -ne 0 ] && die_now _md5_checksum $testfile @@ -489,12 +489,12 @@ _test_generic_punch() else cp $testfile $testfile.2 fi - $XFS_IO_PROG -f -c "truncate 20k" \ - -c "pwrite 8k 12k" -c "fsync" $testfile.2 \ + $XFS_IO_PROG -f -c "truncate 320k" \ + -c "pwrite 128k 192k" -c "fsync" $testfile.2 \ > /dev/null - $XFS_IO_PROG -f -c "truncate 20k" \ - -c "pwrite 0 20k" $sync_cmd \ - -c "$zero_cmd 0k 8k" \ + $XFS_IO_PROG -f -c "truncate 320k" \ + -c "pwrite 0 320k" $sync_cmd \ + -c "$zero_cmd 0k 128k" \ -c "fadvise -d" \ -c "$map_cmd -v" $testfile | $filter_cmd diff $testfile $testfile.2 @@ -506,9 +506,8 @@ _test_generic_punch() if [ "$remove_testfile" ]; then rm -f $testfile fi - block_size=`stat -f $TEST_DEV | grep "Block size" | cut -d " " -f3` - $XFS_IO_PROG -f -c "truncate $block_size" \ - -c "pwrite 0 $block_size" $sync_cmd \ + $XFS_IO_PROG -f -c "truncate 64k" \ + -c "pwrite 0 64k" $sync_cmd \ -c "$zero_cmd 128 128" \ -c "$map_cmd -v" $testfile | $filter_cmd [ $? -ne 0 ] && die_now diff --git a/tests/generic/255.out b/tests/generic/255.out index 2ce882b..5aa1ce1 100644 --- a/tests/generic/255.out +++ b/tests/generic/255.out @@ -1,307 +1,307 @@ QA output created by 255 1. into a hole -daa100df6e6711906b61c9ab5aa16032 +1aca77e2188f52a62674fe8a873bdaba 2. into allocated space -0: [0..7]: extent -1: [8..23]: hole -2: [24..39]: extent -cc58a7417c2d7763adc45b6fcd3fa024 +0: [0..127]: extent +1: [128..383]: hole +2: [384..639]: extent +2f7a72b9ca9923b610514a11a45a80c9 3. into unwritten space -0: [0..7]: extent -1: [8..23]: hole -2: [24..39]: extent -daa100df6e6711906b61c9ab5aa16032 +0: [0..127]: extent +1: [128..383]: hole +2: [384..639]: extent +1aca77e2188f52a62674fe8a873bdaba 4. hole -> data -0: [0..23]: hole -1: [24..31]: extent -2: [32..39]: hole -cc63069677939f69a6e8f68cae6a6dac +0: [0..383]: hole +1: [384..511]: extent +2: [512..639]: hole +286aad7ca07b2256f0f2bb8e608ff63d 5. hole -> unwritten -0: [0..23]: hole -1: [24..31]: extent -2: [32..39]: hole -daa100df6e6711906b61c9ab5aa16032 +0: [0..383]: hole +1: [384..511]: extent +2: [512..639]: hole +1aca77e2188f52a62674fe8a873bdaba 6. data -> hole -0: [0..7]: extent -1: [8..39]: hole -1b3779878366498b28c702ef88c4a773 +0: [0..127]: extent +1: [128..639]: hole +3976e5cc0b8a47c4cdc9e0211635f568 7. data -> unwritten -0: [0..7]: extent -1: [8..23]: hole -2: [24..31]: extent -3: [32..39]: hole -1b3779878366498b28c702ef88c4a773 +0: [0..127]: extent +1: [128..383]: hole +2: [384..511]: extent +3: [512..639]: hole +3976e5cc0b8a47c4cdc9e0211635f568 8. unwritten -> hole -0: [0..7]: extent -1: [8..39]: hole -daa100df6e6711906b61c9ab5aa16032 +0: [0..127]: extent +1: [128..639]: hole +1aca77e2188f52a62674fe8a873bdaba 9. unwritten -> data -0: [0..7]: extent -1: [8..23]: hole -2: [24..31]: extent -3: [32..39]: hole -cc63069677939f69a6e8f68cae6a6dac +0: [0..127]: extent +1: [128..383]: hole +2: [384..511]: extent +3: [512..639]: hole +286aad7ca07b2256f0f2bb8e608ff63d 10. hole -> data -> hole -daa100df6e6711906b61c9ab5aa16032 +1aca77e2188f52a62674fe8a873bdaba 11. data -> hole -> data -0: [0..7]: extent -1: [8..31]: hole -2: [32..39]: extent -f6aeca13ec49e5b266cd1c913cd726e3 +0: [0..127]: extent +1: [128..511]: hole +2: [512..639]: extent +0bcfc7652751f8fe46381240ccadd9d7 12. unwritten -> data -> unwritten -0: [0..7]: extent -1: [8..31]: hole -2: [32..39]: extent -daa100df6e6711906b61c9ab5aa16032 +0: [0..127]: extent +1: [128..511]: hole +2: [512..639]: extent +1aca77e2188f52a62674fe8a873bdaba 13. data -> unwritten -> data -0: [0..7]: extent -1: [8..31]: hole -2: [32..39]: extent -f6aeca13ec49e5b266cd1c913cd726e3 +0: [0..127]: extent +1: [128..511]: hole +2: [512..639]: extent +0bcfc7652751f8fe46381240ccadd9d7 14. data -> hole @ EOF -0: [0..23]: extent -1: [24..39]: hole -e1f024eedd27ea6b1c3e9b841c850404 +0: [0..383]: extent +1: [384..639]: hole +eb591f549edabba2b21f80ce4deed8a9 15. data -> hole @ 0 -0: [0..15]: hole -1: [16..39]: extent -eecb7aa303d121835de05028751d301c +0: [0..255]: hole +1: [256..639]: extent +b0c249edb75ce5b52136864d879cde83 16. data -> cache cold ->hole -0: [0..15]: hole -1: [16..39]: extent -eecb7aa303d121835de05028751d301c +0: [0..255]: hole +1: [256..639]: extent +b0c249edb75ce5b52136864d879cde83 17. data -> hole in single block file -0: [0..7]: extent -13535fd4d496bf0b74bb2335aa4d1b31 +0: [0..127]: extent +27b1998d7d1907fb55376ff286f3f506 1. into a hole -daa100df6e6711906b61c9ab5aa16032 +1aca77e2188f52a62674fe8a873bdaba 2. into allocated space -0: [0..7]: extent -1: [8..23]: hole -2: [24..39]: extent -cc58a7417c2d7763adc45b6fcd3fa024 +0: [0..127]: extent +1: [128..383]: hole +2: [384..639]: extent +2f7a72b9ca9923b610514a11a45a80c9 3. into unwritten space -0: [0..7]: extent -1: [8..23]: hole -2: [24..39]: extent -daa100df6e6711906b61c9ab5aa16032 +0: [0..127]: extent +1: [128..383]: hole +2: [384..639]: extent +1aca77e2188f52a62674fe8a873bdaba 4. hole -> data -0: [0..23]: hole -1: [24..31]: extent -2: [32..39]: hole -cc63069677939f69a6e8f68cae6a6dac +0: [0..383]: hole +1: [384..511]: extent +2: [512..639]: hole +286aad7ca07b2256f0f2bb8e608ff63d 5. hole -> unwritten -0: [0..23]: hole -1: [24..31]: extent -2: [32..39]: hole -daa100df6e6711906b61c9ab5aa16032 +0: [0..383]: hole +1: [384..511]: extent +2: [512..639]: hole +1aca77e2188f52a62674fe8a873bdaba 6. data -> hole -0: [0..7]: extent -1: [8..39]: hole -1b3779878366498b28c702ef88c4a773 +0: [0..127]: extent +1: [128..639]: hole +3976e5cc0b8a47c4cdc9e0211635f568 7. data -> unwritten -0: [0..7]: extent -1: [8..23]: hole -2: [24..31]: extent -3: [32..39]: hole -1b3779878366498b28c702ef88c4a773 +0: [0..127]: extent +1: [128..383]: hole +2: [384..511]: extent +3: [512..639]: hole +3976e5cc0b8a47c4cdc9e0211635f568 8. unwritten -> hole -0: [0..7]: extent -1: [8..39]: hole -daa100df6e6711906b61c9ab5aa16032 +0: [0..127]: extent +1: [128..639]: hole +1aca77e2188f52a62674fe8a873bdaba 9. unwritten -> data -0: [0..7]: extent -1: [8..23]: hole -2: [24..31]: extent -3: [32..39]: hole -cc63069677939f69a6e8f68cae6a6dac +0: [0..127]: extent +1: [128..383]: hole +2: [384..511]: extent +3: [512..639]: hole +286aad7ca07b2256f0f2bb8e608ff63d 10. hole -> data -> hole -daa100df6e6711906b61c9ab5aa16032 +1aca77e2188f52a62674fe8a873bdaba 11. data -> hole -> data -0: [0..7]: extent -1: [8..31]: hole -2: [32..39]: extent -f6aeca13ec49e5b266cd1c913cd726e3 +0: [0..127]: extent +1: [128..511]: hole +2: [512..639]: extent +0bcfc7652751f8fe46381240ccadd9d7 12. unwritten -> data -> unwritten -0: [0..7]: extent -1: [8..31]: hole -2: [32..39]: extent -daa100df6e6711906b61c9ab5aa16032 +0: [0..127]: extent +1: [128..511]: hole +2: [512..639]: extent +1aca77e2188f52a62674fe8a873bdaba 13. data -> unwritten -> data -0: [0..7]: extent -1: [8..31]: hole -2: [32..39]: extent -f6aeca13ec49e5b266cd1c913cd726e3 +0: [0..127]: extent +1: [128..511]: hole +2: [512..639]: extent +0bcfc7652751f8fe46381240ccadd9d7 14. data -> hole @ EOF -0: [0..23]: extent -1: [24..39]: hole -e1f024eedd27ea6b1c3e9b841c850404 +0: [0..383]: extent +1: [384..639]: hole +eb591f549edabba2b21f80ce4deed8a9 15. data -> hole @ 0 -0: [0..15]: hole -1: [16..39]: extent -eecb7aa303d121835de05028751d301c +0: [0..255]: hole +1: [256..639]: extent +b0c249edb75ce5b52136864d879cde83 16. data -> cache cold ->hole -0: [0..15]: hole -1: [16..39]: extent -eecb7aa303d121835de05028751d301c +0: [0..255]: hole +1: [256..639]: extent +b0c249edb75ce5b52136864d879cde83 17. data -> hole in single block file -0: [0..7]: extent -13535fd4d496bf0b74bb2335aa4d1b31 +0: [0..127]: extent +27b1998d7d1907fb55376ff286f3f506 1. into a hole -0: [0..7]: extent -1: [8..39]: hole -5a58e46082be047d0f13bee7974015b9 +0: [0..127]: extent +1: [128..639]: hole +4c4016ef1838c07e9cf59da9c77d017f 2. into allocated space -0: [0..7]: extent -1: [8..23]: hole -2: [24..39]: extent -cc58a7417c2d7763adc45b6fcd3fa024 +0: [0..127]: extent +1: [128..383]: hole +2: [384..639]: extent +2f7a72b9ca9923b610514a11a45a80c9 3. into unwritten space -0: [0..7]: extent -1: [8..23]: hole -2: [24..39]: extent -cc58a7417c2d7763adc45b6fcd3fa024 +0: [0..127]: extent +1: [128..383]: hole +2: [384..639]: extent +2f7a72b9ca9923b610514a11a45a80c9 4. hole -> data -0: [0..7]: extent -1: [8..23]: hole -2: [24..39]: extent -cc58a7417c2d7763adc45b6fcd3fa024 +0: [0..127]: extent +1: [128..383]: hole +2: [384..639]: extent +2f7a72b9ca9923b610514a11a45a80c9 5. hole -> unwritten -0: [0..7]: extent -1: [8..23]: hole -2: [24..39]: extent -cc58a7417c2d7763adc45b6fcd3fa024 +0: [0..127]: extent +1: [128..383]: hole +2: [384..639]: extent +2f7a72b9ca9923b610514a11a45a80c9 6. data -> hole -0: [0..7]: extent -1: [8..23]: hole -2: [24..39]: extent -cc58a7417c2d7763adc45b6fcd3fa024 +0: [0..127]: extent +1: [128..383]: hole +2: [384..639]: extent +2f7a72b9ca9923b610514a11a45a80c9 7. data -> unwritten -0: [0..7]: extent -1: [8..23]: hole -2: [24..39]: extent -cc58a7417c2d7763adc45b6fcd3fa024 +0: [0..127]: extent +1: [128..383]: hole +2: [384..639]: extent +2f7a72b9ca9923b610514a11a45a80c9 8. unwritten -> hole -0: [0..7]: extent -1: [8..23]: hole -2: [24..39]: extent -cc58a7417c2d7763adc45b6fcd3fa024 +0: [0..127]: extent +1: [128..383]: hole +2: [384..639]: extent +2f7a72b9ca9923b610514a11a45a80c9 9. unwritten -> data -0: [0..7]: extent -1: [8..23]: hole -2: [24..39]: extent -cc58a7417c2d7763adc45b6fcd3fa024 +0: [0..127]: extent +1: [128..383]: hole +2: [384..639]: extent +2f7a72b9ca9923b610514a11a45a80c9 10. hole -> data -> hole -0: [0..7]: extent -1: [8..31]: hole -2: [32..39]: extent -f6aeca13ec49e5b266cd1c913cd726e3 +0: [0..127]: extent +1: [128..511]: hole +2: [512..639]: extent +0bcfc7652751f8fe46381240ccadd9d7 11. data -> hole -> data -0: [0..7]: extent -1: [8..31]: hole -2: [32..39]: extent -f6aeca13ec49e5b266cd1c913cd726e3 +0: [0..127]: extent +1: [128..511]: hole +2: [512..639]: extent +0bcfc7652751f8fe46381240ccadd9d7 12. unwritten -> data -> unwritten -0: [0..7]: extent -1: [8..31]: hole -2: [32..39]: extent -f6aeca13ec49e5b266cd1c913cd726e3 +0: [0..127]: extent +1: [128..511]: hole +2: [512..639]: extent +0bcfc7652751f8fe46381240ccadd9d7 13. data -> unwritten -> data -0: [0..7]: extent -1: [8..31]: hole -2: [32..39]: extent -f6aeca13ec49e5b266cd1c913cd726e3 +0: [0..127]: extent +1: [128..511]: hole +2: [512..639]: extent +0bcfc7652751f8fe46381240ccadd9d7 14. data -> hole @ EOF -0: [0..23]: extent -1: [24..39]: hole -e1f024eedd27ea6b1c3e9b841c850404 +0: [0..383]: extent +1: [384..639]: hole +eb591f549edabba2b21f80ce4deed8a9 15. data -> hole @ 0 -0: [0..15]: hole -1: [16..39]: extent -eecb7aa303d121835de05028751d301c +0: [0..255]: hole +1: [256..639]: extent +b0c249edb75ce5b52136864d879cde83 16. data -> cache cold ->hole -0: [0..15]: hole -1: [16..39]: extent -eecb7aa303d121835de05028751d301c +0: [0..255]: hole +1: [256..639]: extent +b0c249edb75ce5b52136864d879cde83 17. data -> hole in single block file -0: [0..7]: extent -13535fd4d496bf0b74bb2335aa4d1b31 +0: [0..127]: extent +27b1998d7d1907fb55376ff286f3f506 1. into a hole -0: [0..7]: extent -1: [8..39]: hole -5a58e46082be047d0f13bee7974015b9 +0: [0..127]: extent +1: [128..639]: hole +4c4016ef1838c07e9cf59da9c77d017f 2. into allocated space -0: [0..7]: extent -1: [8..23]: hole -2: [24..39]: extent -cc58a7417c2d7763adc45b6fcd3fa024 +0: [0..127]: extent +1: [128..383]: hole +2: [384..639]: extent +2f7a72b9ca9923b610514a11a45a80c9 3. into unwritten space -0: [0..7]: extent -1: [8..23]: hole -2: [24..39]: extent -cc58a7417c2d7763adc45b6fcd3fa024 +0: [0..127]: extent +1: [128..383]: hole +2: [384..639]: extent +2f7a72b9ca9923b610514a11a45a80c9 4. hole -> data -0: [0..7]: extent -1: [8..23]: hole -2: [24..39]: extent -cc58a7417c2d7763adc45b6fcd3fa024 +0: [0..127]: extent +1: [128..383]: hole +2: [384..639]: extent +2f7a72b9ca9923b610514a11a45a80c9 5. hole -> unwritten -0: [0..7]: extent -1: [8..23]: hole -2: [24..39]: extent -cc58a7417c2d7763adc45b6fcd3fa024 +0: [0..127]: extent +1: [128..383]: hole +2: [384..639]: extent +2f7a72b9ca9923b610514a11a45a80c9 6. data -> hole -0: [0..7]: extent -1: [8..23]: hole -2: [24..39]: extent -cc58a7417c2d7763adc45b6fcd3fa024 +0: [0..127]: extent +1: [128..383]: hole +2: [384..639]: extent +2f7a72b9ca9923b610514a11a45a80c9 7. data -> unwritten -0: [0..7]: extent -1: [8..23]: hole -2: [24..39]: extent -cc58a7417c2d7763adc45b6fcd3fa024 +0: [0..127]: extent +1: [128..383]: hole +2: [384..639]: extent +2f7a72b9ca9923b610514a11a45a80c9 8. unwritten -> hole -0: [0..7]: extent -1: [8..23]: hole -2: [24..39]: extent -cc58a7417c2d7763adc45b6fcd3fa024 +0: [0..127]: extent +1: [128..383]: hole +2: [384..639]: extent +2f7a72b9ca9923b610514a11a45a80c9 9. unwritten -> data -0: [0..7]: extent -1: [8..23]: hole -2: [24..39]: extent -cc58a7417c2d7763adc45b6fcd3fa024 +0: [0..127]: extent +1: [128..383]: hole +2: [384..639]: extent +2f7a72b9ca9923b610514a11a45a80c9 10. hole -> data -> hole -0: [0..7]: extent -1: [8..31]: hole -2: [32..39]: extent -f6aeca13ec49e5b266cd1c913cd726e3 +0: [0..127]: extent +1: [128..511]: hole +2: [512..639]: extent +0bcfc7652751f8fe46381240ccadd9d7 11. data -> hole -> data -0: [0..7]: extent -1: [8..31]: hole -2: [32..39]: extent -f6aeca13ec49e5b266cd1c913cd726e3 +0: [0..127]: extent +1: [128..511]: hole +2: [512..639]: extent +0bcfc7652751f8fe46381240ccadd9d7 12. unwritten -> data -> unwritten -0: [0..7]: extent -1: [8..31]: hole -2: [32..39]: extent -f6aeca13ec49e5b266cd1c913cd726e3 +0: [0..127]: extent +1: [128..511]: hole +2: [512..639]: extent +0bcfc7652751f8fe46381240ccadd9d7 13. data -> unwritten -> data -0: [0..7]: extent -1: [8..31]: hole -2: [32..39]: extent -f6aeca13ec49e5b266cd1c913cd726e3 +0: [0..127]: extent +1: [128..511]: hole +2: [512..639]: extent +0bcfc7652751f8fe46381240ccadd9d7 14. data -> hole @ EOF -0: [0..23]: extent -1: [24..39]: hole -e1f024eedd27ea6b1c3e9b841c850404 +0: [0..383]: extent +1: [384..639]: hole +eb591f549edabba2b21f80ce4deed8a9 15. data -> hole @ 0 -0: [0..15]: hole -1: [16..39]: extent -eecb7aa303d121835de05028751d301c +0: [0..255]: hole +1: [256..639]: extent +b0c249edb75ce5b52136864d879cde83 16. data -> cache cold ->hole -0: [0..15]: hole -1: [16..39]: extent -eecb7aa303d121835de05028751d301c +0: [0..255]: hole +1: [256..639]: extent +b0c249edb75ce5b52136864d879cde83 17. data -> hole in single block file -0: [0..7]: extent -13535fd4d496bf0b74bb2335aa4d1b31 +0: [0..127]: extent +27b1998d7d1907fb55376ff286f3f506 diff --git a/tests/xfs/242.out b/tests/xfs/242.out index 72026a3..11531d4 100644 --- a/tests/xfs/242.out +++ b/tests/xfs/242.out @@ -1,77 +1,77 @@ QA output created by 242 1. into a hole -0: [0..7]: hole -1: [8..23]: unwritten -2: [24..39]: hole -daa100df6e6711906b61c9ab5aa16032 +0: [0..127]: hole +1: [128..383]: unwritten +2: [384..639]: hole +1aca77e2188f52a62674fe8a873bdaba 2. into allocated space -0: [0..7]: data -1: [8..23]: unwritten -2: [24..39]: data -cc58a7417c2d7763adc45b6fcd3fa024 +0: [0..127]: data +1: [128..383]: unwritten +2: [384..639]: data +2f7a72b9ca9923b610514a11a45a80c9 3. into unwritten space -0: [0..39]: unwritten -daa100df6e6711906b61c9ab5aa16032 +0: [0..639]: unwritten +1aca77e2188f52a62674fe8a873bdaba 4. hole -> data -0: [0..7]: hole -1: [8..23]: unwritten -2: [24..31]: data -3: [32..39]: hole -cc63069677939f69a6e8f68cae6a6dac +0: [0..127]: hole +1: [128..383]: unwritten +2: [384..511]: data +3: [512..639]: hole +286aad7ca07b2256f0f2bb8e608ff63d 5. hole -> unwritten -0: [0..7]: hole -1: [8..31]: unwritten -2: [32..39]: hole -daa100df6e6711906b61c9ab5aa16032 +0: [0..127]: hole +1: [128..511]: unwritten +2: [512..639]: hole +1aca77e2188f52a62674fe8a873bdaba 6. data -> hole -0: [0..7]: data -1: [8..23]: unwritten -2: [24..39]: hole -1b3779878366498b28c702ef88c4a773 +0: [0..127]: data +1: [128..383]: unwritten +2: [384..639]: hole +3976e5cc0b8a47c4cdc9e0211635f568 7. data -> unwritten -0: [0..7]: data -1: [8..31]: unwritten -2: [32..39]: hole -1b3779878366498b28c702ef88c4a773 +0: [0..127]: data +1: [128..511]: unwritten +2: [512..639]: hole +3976e5cc0b8a47c4cdc9e0211635f568 8. unwritten -> hole -0: [0..23]: unwritten -1: [24..39]: hole -daa100df6e6711906b61c9ab5aa16032 +0: [0..383]: unwritten +1: [384..639]: hole +1aca77e2188f52a62674fe8a873bdaba 9. unwritten -> data -0: [0..23]: unwritten -1: [24..31]: data -2: [32..39]: hole -cc63069677939f69a6e8f68cae6a6dac +0: [0..383]: unwritten +1: [384..511]: data +2: [512..639]: hole +286aad7ca07b2256f0f2bb8e608ff63d 10. hole -> data -> hole -0: [0..7]: hole -1: [8..31]: unwritten -2: [32..39]: hole -daa100df6e6711906b61c9ab5aa16032 +0: [0..127]: hole +1: [128..511]: unwritten +2: [512..639]: hole +1aca77e2188f52a62674fe8a873bdaba 11. data -> hole -> data -0: [0..7]: data -1: [8..31]: unwritten -2: [32..39]: data -f6aeca13ec49e5b266cd1c913cd726e3 +0: [0..127]: data +1: [128..511]: unwritten +2: [512..639]: data +0bcfc7652751f8fe46381240ccadd9d7 12. unwritten -> data -> unwritten -0: [0..39]: unwritten -daa100df6e6711906b61c9ab5aa16032 +0: [0..639]: unwritten +1aca77e2188f52a62674fe8a873bdaba 13. data -> unwritten -> data -0: [0..7]: data -1: [8..31]: unwritten -2: [32..39]: data -f6aeca13ec49e5b266cd1c913cd726e3 +0: [0..127]: data +1: [128..511]: unwritten +2: [512..639]: data +0bcfc7652751f8fe46381240ccadd9d7 14. data -> hole @ EOF -0: [0..23]: data -1: [24..39]: unwritten -e1f024eedd27ea6b1c3e9b841c850404 +0: [0..383]: data +1: [384..639]: unwritten +eb591f549edabba2b21f80ce4deed8a9 15. data -> hole @ 0 -0: [0..15]: unwritten -1: [16..39]: data -eecb7aa303d121835de05028751d301c +0: [0..255]: unwritten +1: [256..639]: data +b0c249edb75ce5b52136864d879cde83 16. data -> cache cold ->hole -0: [0..15]: unwritten -1: [16..39]: data -eecb7aa303d121835de05028751d301c +0: [0..255]: unwritten +1: [256..639]: data +b0c249edb75ce5b52136864d879cde83 17. data -> hole in single block file -0: [0..7]: data -13535fd4d496bf0b74bb2335aa4d1b31 +0: [0..127]: data +27b1998d7d1907fb55376ff286f3f506 diff --git a/tests/xfs/252.out b/tests/xfs/252.out index 3caf9d6..ba37288 100644 --- a/tests/xfs/252.out +++ b/tests/xfs/252.out @@ -1,307 +1,307 @@ QA output created by 252 1. into a hole -daa100df6e6711906b61c9ab5aa16032 +1aca77e2188f52a62674fe8a873bdaba 2. into allocated space -0: [0..7]: data -1: [8..23]: hole -2: [24..39]: data -cc58a7417c2d7763adc45b6fcd3fa024 +0: [0..127]: data +1: [128..383]: hole +2: [384..639]: data +2f7a72b9ca9923b610514a11a45a80c9 3. into unwritten space -0: [0..7]: unwritten -1: [8..23]: hole -2: [24..39]: unwritten -daa100df6e6711906b61c9ab5aa16032 +0: [0..127]: unwritten +1: [128..383]: hole +2: [384..639]: unwritten +1aca77e2188f52a62674fe8a873bdaba 4. hole -> data -0: [0..23]: hole -1: [24..31]: data -2: [32..39]: hole -cc63069677939f69a6e8f68cae6a6dac +0: [0..383]: hole +1: [384..511]: data +2: [512..639]: hole +286aad7ca07b2256f0f2bb8e608ff63d 5. hole -> unwritten -0: [0..23]: hole -1: [24..31]: unwritten -2: [32..39]: hole -daa100df6e6711906b61c9ab5aa16032 +0: [0..383]: hole +1: [384..511]: unwritten +2: [512..639]: hole +1aca77e2188f52a62674fe8a873bdaba 6. data -> hole -0: [0..7]: data -1: [8..39]: hole -1b3779878366498b28c702ef88c4a773 +0: [0..127]: data +1: [128..639]: hole +3976e5cc0b8a47c4cdc9e0211635f568 7. data -> unwritten -0: [0..7]: data -1: [8..23]: hole -2: [24..31]: unwritten -3: [32..39]: hole -1b3779878366498b28c702ef88c4a773 +0: [0..127]: data +1: [128..383]: hole +2: [384..511]: unwritten +3: [512..639]: hole +3976e5cc0b8a47c4cdc9e0211635f568 8. unwritten -> hole -0: [0..7]: unwritten -1: [8..39]: hole -daa100df6e6711906b61c9ab5aa16032 +0: [0..127]: unwritten +1: [128..639]: hole +1aca77e2188f52a62674fe8a873bdaba 9. unwritten -> data -0: [0..7]: unwritten -1: [8..23]: hole -2: [24..31]: data -3: [32..39]: hole -cc63069677939f69a6e8f68cae6a6dac +0: [0..127]: unwritten +1: [128..383]: hole +2: [384..511]: data +3: [512..639]: hole +286aad7ca07b2256f0f2bb8e608ff63d 10. hole -> data -> hole -daa100df6e6711906b61c9ab5aa16032 +1aca77e2188f52a62674fe8a873bdaba 11. data -> hole -> data -0: [0..7]: data -1: [8..31]: hole -2: [32..39]: data -f6aeca13ec49e5b266cd1c913cd726e3 +0: [0..127]: data +1: [128..511]: hole +2: [512..639]: data +0bcfc7652751f8fe46381240ccadd9d7 12. unwritten -> data -> unwritten -0: [0..7]: unwritten -1: [8..31]: hole -2: [32..39]: unwritten -daa100df6e6711906b61c9ab5aa16032 +0: [0..127]: unwritten +1: [128..511]: hole +2: [512..639]: unwritten +1aca77e2188f52a62674fe8a873bdaba 13. data -> unwritten -> data -0: [0..7]: data -1: [8..31]: hole -2: [32..39]: data -f6aeca13ec49e5b266cd1c913cd726e3 +0: [0..127]: data +1: [128..511]: hole +2: [512..639]: data +0bcfc7652751f8fe46381240ccadd9d7 14. data -> hole @ EOF -0: [0..23]: data -1: [24..39]: hole -e1f024eedd27ea6b1c3e9b841c850404 +0: [0..383]: data +1: [384..639]: hole +eb591f549edabba2b21f80ce4deed8a9 15. data -> hole @ 0 -0: [0..15]: hole -1: [16..39]: data -eecb7aa303d121835de05028751d301c +0: [0..255]: hole +1: [256..639]: data +b0c249edb75ce5b52136864d879cde83 16. data -> cache cold ->hole -0: [0..15]: hole -1: [16..39]: data -eecb7aa303d121835de05028751d301c +0: [0..255]: hole +1: [256..639]: data +b0c249edb75ce5b52136864d879cde83 17. data -> hole in single block file -0: [0..7]: data -13535fd4d496bf0b74bb2335aa4d1b31 +0: [0..127]: data +27b1998d7d1907fb55376ff286f3f506 1. into a hole -daa100df6e6711906b61c9ab5aa16032 +1aca77e2188f52a62674fe8a873bdaba 2. into allocated space -0: [0..7]: data -1: [8..23]: hole -2: [24..39]: data -cc58a7417c2d7763adc45b6fcd3fa024 +0: [0..127]: data +1: [128..383]: hole +2: [384..639]: data +2f7a72b9ca9923b610514a11a45a80c9 3. into unwritten space -0: [0..7]: unwritten -1: [8..23]: hole -2: [24..39]: unwritten -daa100df6e6711906b61c9ab5aa16032 +0: [0..127]: unwritten +1: [128..383]: hole +2: [384..639]: unwritten +1aca77e2188f52a62674fe8a873bdaba 4. hole -> data -0: [0..23]: hole -1: [24..31]: data -2: [32..39]: hole -cc63069677939f69a6e8f68cae6a6dac +0: [0..383]: hole +1: [384..511]: data +2: [512..639]: hole +286aad7ca07b2256f0f2bb8e608ff63d 5. hole -> unwritten -0: [0..23]: hole -1: [24..31]: unwritten -2: [32..39]: hole -daa100df6e6711906b61c9ab5aa16032 +0: [0..383]: hole +1: [384..511]: unwritten +2: [512..639]: hole +1aca77e2188f52a62674fe8a873bdaba 6. data -> hole -0: [0..7]: data -1: [8..39]: hole -1b3779878366498b28c702ef88c4a773 +0: [0..127]: data +1: [128..639]: hole +3976e5cc0b8a47c4cdc9e0211635f568 7. data -> unwritten -0: [0..7]: data -1: [8..23]: hole -2: [24..31]: unwritten -3: [32..39]: hole -1b3779878366498b28c702ef88c4a773 +0: [0..127]: data +1: [128..383]: hole +2: [384..511]: unwritten +3: [512..639]: hole +3976e5cc0b8a47c4cdc9e0211635f568 8. unwritten -> hole -0: [0..7]: unwritten -1: [8..39]: hole -daa100df6e6711906b61c9ab5aa16032 +0: [0..127]: unwritten +1: [128..639]: hole +1aca77e2188f52a62674fe8a873bdaba 9. unwritten -> data -0: [0..7]: unwritten -1: [8..23]: hole -2: [24..31]: data -3: [32..39]: hole -cc63069677939f69a6e8f68cae6a6dac +0: [0..127]: unwritten +1: [128..383]: hole +2: [384..511]: data +3: [512..639]: hole +286aad7ca07b2256f0f2bb8e608ff63d 10. hole -> data -> hole -daa100df6e6711906b61c9ab5aa16032 +1aca77e2188f52a62674fe8a873bdaba 11. data -> hole -> data -0: [0..7]: data -1: [8..31]: hole -2: [32..39]: data -f6aeca13ec49e5b266cd1c913cd726e3 +0: [0..127]: data +1: [128..511]: hole +2: [512..639]: data +0bcfc7652751f8fe46381240ccadd9d7 12. unwritten -> data -> unwritten -0: [0..7]: unwritten -1: [8..31]: hole -2: [32..39]: unwritten -daa100df6e6711906b61c9ab5aa16032 +0: [0..127]: unwritten +1: [128..511]: hole +2: [512..639]: unwritten +1aca77e2188f52a62674fe8a873bdaba 13. data -> unwritten -> data -0: [0..7]: data -1: [8..31]: hole -2: [32..39]: data -f6aeca13ec49e5b266cd1c913cd726e3 +0: [0..127]: data +1: [128..511]: hole +2: [512..639]: data +0bcfc7652751f8fe46381240ccadd9d7 14. data -> hole @ EOF -0: [0..23]: data -1: [24..39]: hole -e1f024eedd27ea6b1c3e9b841c850404 +0: [0..383]: data +1: [384..639]: hole +eb591f549edabba2b21f80ce4deed8a9 15. data -> hole @ 0 -0: [0..15]: hole -1: [16..39]: data -eecb7aa303d121835de05028751d301c +0: [0..255]: hole +1: [256..639]: data +b0c249edb75ce5b52136864d879cde83 16. data -> cache cold ->hole -0: [0..15]: hole -1: [16..39]: data -eecb7aa303d121835de05028751d301c +0: [0..255]: hole +1: [256..639]: data +b0c249edb75ce5b52136864d879cde83 17. data -> hole in single block file -0: [0..7]: data -13535fd4d496bf0b74bb2335aa4d1b31 +0: [0..127]: data +27b1998d7d1907fb55376ff286f3f506 1. into a hole -0: [0..7]: data -1: [8..39]: hole -5a58e46082be047d0f13bee7974015b9 +0: [0..127]: data +1: [128..639]: hole +4c4016ef1838c07e9cf59da9c77d017f 2. into allocated space -0: [0..7]: data -1: [8..23]: hole -2: [24..39]: data -cc58a7417c2d7763adc45b6fcd3fa024 +0: [0..127]: data +1: [128..383]: hole +2: [384..639]: data +2f7a72b9ca9923b610514a11a45a80c9 3. into unwritten space -0: [0..7]: data -1: [8..23]: hole -2: [24..39]: data -cc58a7417c2d7763adc45b6fcd3fa024 +0: [0..127]: data +1: [128..383]: hole +2: [384..639]: data +2f7a72b9ca9923b610514a11a45a80c9 4. hole -> data -0: [0..7]: data -1: [8..23]: hole -2: [24..39]: data -cc58a7417c2d7763adc45b6fcd3fa024 +0: [0..127]: data +1: [128..383]: hole +2: [384..639]: data +2f7a72b9ca9923b610514a11a45a80c9 5. hole -> unwritten -0: [0..7]: data -1: [8..23]: hole -2: [24..39]: data -cc58a7417c2d7763adc45b6fcd3fa024 +0: [0..127]: data +1: [128..383]: hole +2: [384..639]: data +2f7a72b9ca9923b610514a11a45a80c9 6. data -> hole -0: [0..7]: data -1: [8..23]: hole -2: [24..39]: data -cc58a7417c2d7763adc45b6fcd3fa024 +0: [0..127]: data +1: [128..383]: hole +2: [384..639]: data +2f7a72b9ca9923b610514a11a45a80c9 7. data -> unwritten -0: [0..7]: data -1: [8..23]: hole -2: [24..39]: data -cc58a7417c2d7763adc45b6fcd3fa024 +0: [0..127]: data +1: [128..383]: hole +2: [384..639]: data +2f7a72b9ca9923b610514a11a45a80c9 8. unwritten -> hole -0: [0..7]: data -1: [8..23]: hole -2: [24..39]: data -cc58a7417c2d7763adc45b6fcd3fa024 +0: [0..127]: data +1: [128..383]: hole +2: [384..639]: data +2f7a72b9ca9923b610514a11a45a80c9 9. unwritten -> data -0: [0..7]: data -1: [8..23]: hole -2: [24..39]: data -cc58a7417c2d7763adc45b6fcd3fa024 +0: [0..127]: data +1: [128..383]: hole +2: [384..639]: data +2f7a72b9ca9923b610514a11a45a80c9 10. hole -> data -> hole -0: [0..7]: data -1: [8..31]: hole -2: [32..39]: data -f6aeca13ec49e5b266cd1c913cd726e3 +0: [0..127]: data +1: [128..511]: hole +2: [512..639]: data +0bcfc7652751f8fe46381240ccadd9d7 11. data -> hole -> data -0: [0..7]: data -1: [8..31]: hole -2: [32..39]: data -f6aeca13ec49e5b266cd1c913cd726e3 +0: [0..127]: data +1: [128..511]: hole +2: [512..639]: data +0bcfc7652751f8fe46381240ccadd9d7 12. unwritten -> data -> unwritten -0: [0..7]: data -1: [8..31]: hole -2: [32..39]: data -f6aeca13ec49e5b266cd1c913cd726e3 +0: [0..127]: data +1: [128..511]: hole +2: [512..639]: data +0bcfc7652751f8fe46381240ccadd9d7 13. data -> unwritten -> data -0: [0..7]: data -1: [8..31]: hole -2: [32..39]: data -f6aeca13ec49e5b266cd1c913cd726e3 +0: [0..127]: data +1: [128..511]: hole +2: [512..639]: data +0bcfc7652751f8fe46381240ccadd9d7 14. data -> hole @ EOF -0: [0..23]: data -1: [24..39]: hole -e1f024eedd27ea6b1c3e9b841c850404 +0: [0..383]: data +1: [384..639]: hole +eb591f549edabba2b21f80ce4deed8a9 15. data -> hole @ 0 -0: [0..15]: hole -1: [16..39]: data -eecb7aa303d121835de05028751d301c +0: [0..255]: hole +1: [256..639]: data +b0c249edb75ce5b52136864d879cde83 16. data -> cache cold ->hole -0: [0..15]: hole -1: [16..39]: data -eecb7aa303d121835de05028751d301c +0: [0..255]: hole +1: [256..639]: data +b0c249edb75ce5b52136864d879cde83 17. data -> hole in single block file -0: [0..7]: data -13535fd4d496bf0b74bb2335aa4d1b31 +0: [0..127]: data +27b1998d7d1907fb55376ff286f3f506 1. into a hole -0: [0..7]: data -1: [8..39]: hole -5a58e46082be047d0f13bee7974015b9 +0: [0..127]: data +1: [128..639]: hole +4c4016ef1838c07e9cf59da9c77d017f 2. into allocated space -0: [0..7]: data -1: [8..23]: hole -2: [24..39]: data -cc58a7417c2d7763adc45b6fcd3fa024 +0: [0..127]: data +1: [128..383]: hole +2: [384..639]: data +2f7a72b9ca9923b610514a11a45a80c9 3. into unwritten space -0: [0..7]: data -1: [8..23]: hole -2: [24..39]: data -cc58a7417c2d7763adc45b6fcd3fa024 +0: [0..127]: data +1: [128..383]: hole +2: [384..639]: data +2f7a72b9ca9923b610514a11a45a80c9 4. hole -> data -0: [0..7]: data -1: [8..23]: hole -2: [24..39]: data -cc58a7417c2d7763adc45b6fcd3fa024 +0: [0..127]: data +1: [128..383]: hole +2: [384..639]: data +2f7a72b9ca9923b610514a11a45a80c9 5. hole -> unwritten -0: [0..7]: data -1: [8..23]: hole -2: [24..39]: data -cc58a7417c2d7763adc45b6fcd3fa024 +0: [0..127]: data +1: [128..383]: hole +2: [384..639]: data +2f7a72b9ca9923b610514a11a45a80c9 6. data -> hole -0: [0..7]: data -1: [8..23]: hole -2: [24..39]: data -cc58a7417c2d7763adc45b6fcd3fa024 +0: [0..127]: data +1: [128..383]: hole +2: [384..639]: data +2f7a72b9ca9923b610514a11a45a80c9 7. data -> unwritten -0: [0..7]: data -1: [8..23]: hole -2: [24..39]: data -cc58a7417c2d7763adc45b6fcd3fa024 +0: [0..127]: data +1: [128..383]: hole +2: [384..639]: data +2f7a72b9ca9923b610514a11a45a80c9 8. unwritten -> hole -0: [0..7]: data -1: [8..23]: hole -2: [24..39]: data -cc58a7417c2d7763adc45b6fcd3fa024 +0: [0..127]: data +1: [128..383]: hole +2: [384..639]: data +2f7a72b9ca9923b610514a11a45a80c9 9. unwritten -> data -0: [0..7]: data -1: [8..23]: hole -2: [24..39]: data -cc58a7417c2d7763adc45b6fcd3fa024 +0: [0..127]: data +1: [128..383]: hole +2: [384..639]: data +2f7a72b9ca9923b610514a11a45a80c9 10. hole -> data -> hole -0: [0..7]: data -1: [8..31]: hole -2: [32..39]: data -f6aeca13ec49e5b266cd1c913cd726e3 +0: [0..127]: data +1: [128..511]: hole +2: [512..639]: data +0bcfc7652751f8fe46381240ccadd9d7 11. data -> hole -> data -0: [0..7]: data -1: [8..31]: hole -2: [32..39]: data -f6aeca13ec49e5b266cd1c913cd726e3 +0: [0..127]: data +1: [128..511]: hole +2: [512..639]: data +0bcfc7652751f8fe46381240ccadd9d7 12. unwritten -> data -> unwritten -0: [0..7]: data -1: [8..31]: hole -2: [32..39]: data -f6aeca13ec49e5b266cd1c913cd726e3 +0: [0..127]: data +1: [128..511]: hole +2: [512..639]: data +0bcfc7652751f8fe46381240ccadd9d7 13. data -> unwritten -> data -0: [0..7]: data -1: [8..31]: hole -2: [32..39]: data -f6aeca13ec49e5b266cd1c913cd726e3 +0: [0..127]: data +1: [128..511]: hole +2: [512..639]: data +0bcfc7652751f8fe46381240ccadd9d7 14. data -> hole @ EOF -0: [0..23]: data -1: [24..39]: hole -e1f024eedd27ea6b1c3e9b841c850404 +0: [0..383]: data +1: [384..639]: hole +eb591f549edabba2b21f80ce4deed8a9 15. data -> hole @ 0 -0: [0..15]: hole -1: [16..39]: data -eecb7aa303d121835de05028751d301c +0: [0..255]: hole +1: [256..639]: data +b0c249edb75ce5b52136864d879cde83 16. data -> cache cold ->hole -0: [0..15]: hole -1: [16..39]: data -eecb7aa303d121835de05028751d301c +0: [0..255]: hole +1: [256..639]: data +b0c249edb75ce5b52136864d879cde83 17. data -> hole in single block file -0: [0..7]: data -13535fd4d496bf0b74bb2335aa4d1b31 +0: [0..127]: data +27b1998d7d1907fb55376ff286f3f506 -- 1.8.3.1 -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Dave Chinner
2013-Aug-12 01:11 UTC
***** SUSPECTED SPAM ***** Re: [PATCH] _test_generic_punch: Extend $testfile''s size to work with 64k block.
On Thu, Aug 08, 2013 at 11:40:04AM +0530, chandan wrote:> From cf6e1fc3a8d7806a97055b5f483cf50f58c8294f Mon Sep 17 00:00:00 2001 > From: chandan <chandan@linux.vnet.ibm.com> > Date: Thu, 8 Aug 2013 11:33:10 +0530 > Subject: [PATCH] _test_generic_punch: Extend $testfile''s size to work with 64k > block. > > The current script does not work with 64k block size. This patch fixes it > by creating a larger $testfile.I can see why we might want to support such a configuration, but the changes being made defeat the purpose of the sizes chosen for this test. That is, most people testing are using 4k block size filesystems, and the sizes are selected such that single blocks are being manipulated by the test. it''s looking for corner/edge case problems, and changing the code to now use chunks of 64k changes all the edge cases being tested. Indeed, even the new bmap output is likely to cause problems in that small block size filesystems are no guaranteed to allocate contiguous blocks linearly. This is another reason that 4k was chosen as the size of the regions. So, to do this properly, I''d suggest that the code needs to scale the offset/size of the IO being done by the filesystem block size, not use a fixed size. Using a filter on the bmap output to handle the different block ranges will ensure everything works correctly from a golden output POV, except for one thing - the md5sum. The md5sum of the file is used for integrity checking and will change as the block size changes. I haven''t thought about a way to avoid his problem yet but we do need some form of integrity check to ensure all filesystems are ending up with the correct contents in the files. In the interim, if all you want to do is stop a test failure on your power machines, then either add a "_requires_le_4k_blocksize" check to avoid running the test on problematic filesystems or specifically create the fileystem being tested with a 4k block size... Cheers, Dave. -- Dave Chinner david@fromorbit.com _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs
chandan
2013-Aug-13 15:58 UTC
Re: [PATCH] _test_generic_punch: Extend $testfile''s size to work with 64k block.
Hello Dave,> So, to do this properly, I''d suggest that the code needs to scale > the offset/size of the IO being done by the filesystem block size, > not use a fixed size. Using a filter on the bmap output to handle > the different block ranges will ensure everything works correctly > from a golden output POV, except for one thing - the md5sum. >Yes, we did try the approach of using variable block size and scaling the offset values in the filter function. But we got stuck working with md5sum (since we would need two sets of md5sums (with and without ''-k'' option) per block size). As suggested, I will be reposting the patch to use "_requires_le_4k_blocksize". chandan -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html