Test case for expanding inode size where there is not enough room for the requested new inode size. Prompt user to delete one or more EAs (default is to abort). Index: e2fsprogs-1.39/tests/f_expisize_ea_del/expect.1 =================================================================== --- /dev/null +++ e2fsprogs-1.39/tests/f_expisize_ea_del/expect.1 @@ -0,0 +1,10 @@ +Adding dirhash hint to filesystem. + +Pass 1: Checking inodes, blocks, and sizes +Expanding inode 12. +An EA needs to be deleted for inode 12 but e2fsck is being run +with -p or -y mode. +Abort? yes + +e2fsck: aborted +Exit status is 8 Index: e2fsprogs-1.39/tests/f_expisize_ea_del/expect.2 =================================================================== --- /dev/null +++ e2fsprogs-1.39/tests/f_expisize_ea_del/expect.2 @@ -0,0 +1,11 @@ +Adding dirhash hint to filesystem. + +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: ***** FILE SYSTEM WAS MODIFIED ***** +test_filesys: 12/2048 files (0.0% non-contiguous), 2106/8192 blocks +Exit status is 1 Index: e2fsprogs-1.39/tests/f_expisize_ea_del/name =================================================================== --- /dev/null +++ e2fsprogs-1.39/tests/f_expisize_ea_del/name @@ -0,0 +1 @@ +EA needs deletion but running in -p or -y mode Index: e2fsprogs-1.39/tests/f_expisize_ea_del/script =================================================================== --- /dev/null +++ e2fsprogs-1.39/tests/f_expisize_ea_del/script @@ -0,0 +1,4 @@ +FSCK_OPT="-fy -E expand_extra_isize" +SECOND_FSCK_OPT=-yf + +. $cmd_dir/run_e2fsck *** /dev/null 2007-06-06 13:12:35.347432049 +0530 --- e2fsprogs-1.39/tests/f_expisize_ea_del/image.gz 2007-06-06 15:58:17.000000000 +0530 *************** *** 0 **** --- 1,5 ---- + fFimage Tu7" + **("(hRڡ."`^DfyyVyTfdeyy]Gg%#|";og7gyoעVԫ()]bQUQ_ޫl1Rѧl~vs6}^ۺwE1sk:vިάܻdq'.[TeJCӰ4VwEmKѦbjٛ2xERMmKE-?P&*00000xh2JUuZ-)G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