From aa4a58ba2492106695951e4a4082c242ca74b06f Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Mon, 26 Nov 2001 20:00:07 -0500 Subject: [PATCH] f_miss_blk_bmap: Add new test which checks for bug in e2fsck where it wouldn't allocate a missing block bitmap on filesystems with a blocksize of 2k or 4k. --- tests/ChangeLog | 6 ++++++ tests/f_miss_blk_bmap/expect.1 | 19 +++++++++++++++++++ tests/f_miss_blk_bmap/expect.2 | 7 +++++++ tests/f_miss_blk_bmap/image.gz | Bin 0 -> 687 bytes tests/f_miss_blk_bmap/name | 1 + 5 files changed, 33 insertions(+) create mode 100644 tests/f_miss_blk_bmap/expect.1 create mode 100644 tests/f_miss_blk_bmap/expect.2 create mode 100644 tests/f_miss_blk_bmap/image.gz create mode 100644 tests/f_miss_blk_bmap/name diff --git a/tests/ChangeLog b/tests/ChangeLog index 2fd5c6c..1e22faf 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,9 @@ +2001-11-26 Theodore Tso + + * f_miss_blk_bmap: Add new test which checks for bug in e2fsck + where it wouldn't allocate a missing block bitmap on + filesystems with a blocksize of 2k or 4k. + 2001-10-07 Theodore Tso * f_bad_local_jnl: New test which tests for a V2 journal with bad diff --git a/tests/f_miss_blk_bmap/expect.1 b/tests/f_miss_blk_bmap/expect.1 new file mode 100644 index 0000000..ad7b376 --- /dev/null +++ b/tests/f_miss_blk_bmap/expect.1 @@ -0,0 +1,19 @@ +Pass 1: Checking inodes, blocks, and sizes +Relocating group 0's block bitmap to 2... +Pass 2: Checking directory structure +Pass 3: Checking directory connectivity +Pass 4: Checking reference counts +Pass 5: Checking group summary information +Block bitmap differences: +0 +1 +2 +3 +4 +5 +6 +7 +8 +9 +10 +Fix? yes + +Free blocks count wrong for group #0 (90, counted=89). +Fix? yes + +Free blocks count wrong (90, counted=89). +Fix? yes + + +test_filesys: ***** FILE SYSTEM WAS MODIFIED ***** +test_filesys: 11/64 files (0.0% non-contiguous), 11/100 blocks +Exit status is 1 diff --git a/tests/f_miss_blk_bmap/expect.2 b/tests/f_miss_blk_bmap/expect.2 new file mode 100644 index 0000000..83f92ea --- /dev/null +++ b/tests/f_miss_blk_bmap/expect.2 @@ -0,0 +1,7 @@ +Pass 1: Checking inodes, blocks, and sizes +Pass 2: Checking directory structure +Pass 3: Checking directory connectivity +Pass 4: Checking reference counts +Pass 5: Checking group summary information +test_filesys: 11/64 files (0.0% non-contiguous), 11/100 blocks +Exit status is 0 diff --git a/tests/f_miss_blk_bmap/image.gz b/tests/f_miss_blk_bmap/image.gz new file mode 100644 index 0000000000000000000000000000000000000000..680dbe0b05bcfb0005f5896fa8e58b5f0cb93dbe GIT binary patch literal 687 zcmb2|=HR$={jW6>b7pR0dMd-)JA1tj2S~6zxP0Y)*ow*B-48TGWL^bvl?ukhu&_UW zq*4}8{*h0|FRnBA;6dqvm%2MdWMjO2XSsC8x@OnPRVZ58=01?-`#Gz?iQ(Vsv^imO zep(za%(_`IMKxw=X4+%_y^gjmXA6D=akT#Vv%vn>nh9q$)8kLqt4rRuer02K=l%OT zcVfR^&)a@IRE~k6&fW0bofrT1PrLV-nSp`9ICaO5%0E^tKxSIdwg1{6#+h}0Zq_e1 zU-A6s$?yEXcHec2n7gNLdmxW@@@KI