Try to reduce dumpe2fs output to 80 columns or less. Signed-off-by: Darrick J. Wong <darrick.wong@xxxxxxxxxx> --- misc/dumpe2fs.c | 6 +++++- tests/f_jnl_errno/expect.0 | 3 ++- tests/j_short_revoke_trans/script | 2 +- tests/j_short_revoke_trans_mcsum_64bit/script | 2 +- tests/j_short_trans/script | 2 +- tests/j_short_trans_64bit/script | 2 +- tests/j_short_trans_mcsum_64bit/script | 2 +- tests/j_short_trans_old_csum/script | 2 +- tests/j_short_trans_open_recover/script | 2 +- tests/j_short_trans_recover/script | 2 +- tests/j_short_trans_recover_mcsum_64bit/script | 2 +- tests/j_short_uncommitted_trans/script | 2 +- tests/j_short_uncommitted_trans_mcsum_64bit/script | 2 +- tests/m_64bit_flexbg/expect.1 | 3 ++- tests/m_bigjournal/script | 3 +++ tests/m_dasd_bs/expect.1 | 6 ++++-- tests/m_desc_size_128/script | 3 +++ tests/m_extent_journal/script | 3 +++ tests/m_large_file/expect.1 | 3 ++- tests/m_meta_bg/script | 3 +++ tests/m_mmp/expect.1 | 6 ++++-- tests/m_no_opt/script | 3 +++ tests/m_quota/script | 3 +++ tests/m_raid_opt/script | 3 +++ tests/m_root_owner/expect.1 | 3 ++- tests/m_std/script | 3 +++ tests/m_uninit/script | 3 +++ tests/r_move_itable/script | 8 ++++---- tests/r_resize_inode/script | 6 +++--- 29 files changed, 66 insertions(+), 27 deletions(-) diff --git a/misc/dumpe2fs.c b/misc/dumpe2fs.c index 26f2e37..40aa242 100644 --- a/misc/dumpe2fs.c +++ b/misc/dumpe2fs.c @@ -264,7 +264,11 @@ static void list_desc(ext2_filsys fs, int grp_only) EXT4_FEATURE_RO_COMPAT_METADATA_CSUM) printf(_(", csum 0x%08x"), ext2fs_block_bitmap_checksum(fs, i)); - fputs(_(", Inode bitmap at "), stdout); + if (getenv("DUMPE2FS_IGNORE_80COL")) + fputs(_(","), stdout); + else + fputs(_("\n "), stdout); + fputs(_(" Inode bitmap at "), stdout); print_number(ext2fs_inode_bitmap_loc(fs, i)); print_bg_rel_offset(fs, ext2fs_inode_bitmap_loc(fs, i), 0, first_block, last_block); diff --git a/tests/f_jnl_errno/expect.0 b/tests/f_jnl_errno/expect.0 index 6dad72a..2a9426d 100644 --- a/tests/f_jnl_errno/expect.0 +++ b/tests/f_jnl_errno/expect.0 @@ -40,7 +40,8 @@ Journal start: 0 Group 0: (Blocks 1-8191) [ITABLE_ZEROED] Primary superblock at 1, Group descriptors at 2-2 Reserved GDT blocks at 3-33 - Block bitmap at 34 (+33), Inode bitmap at 50 (+49) + Block bitmap at 34 (+33) + Inode bitmap at 50 (+49) Inode table at 66-321 (+65) 6862 free blocks, 2037 free inodes, 2 directories, 2037 unused inodes Free blocks: 1330-8191 diff --git a/tests/j_short_revoke_trans/script b/tests/j_short_revoke_trans/script index 94f20b9..4eec436 100644 --- a/tests/j_short_revoke_trans/script +++ b/tests/j_short_revoke_trans/script @@ -19,7 +19,7 @@ echo Exit status is $status >> $OUT.new sed -f $cmd_dir/filter.sed -e "s;$TMPFILE;test.img;" $OUT.new >> $OUT rm -f $OUT.new -bitmaps="$($DUMPE2FS $TMPFILE 2>&1 | grep 'bitmap at' | sed -e 's/^.*Block bitmap at \([0-9]*\) .*Inode bitmap at \([0-9]*\).*$/\1,\2/g' | tr '\n' ',')" +bitmaps="$($DUMPE2FS $TMPFILE 2>&1 | grep 'bitmap at' | sed -e 's/^.*bitmap at \([0-9]*\).*$/\1/g' | tr '\n' ',')" echo "debugfs write journal" >> $OUT echo "jo" > $TMPFILE.cmd diff --git a/tests/j_short_revoke_trans_mcsum_64bit/script b/tests/j_short_revoke_trans_mcsum_64bit/script index 8358012..c943efa 100644 --- a/tests/j_short_revoke_trans_mcsum_64bit/script +++ b/tests/j_short_revoke_trans_mcsum_64bit/script @@ -19,7 +19,7 @@ echo Exit status is $status >> $OUT.new sed -f $cmd_dir/filter.sed -e "s;$TMPFILE;test.img;" $OUT.new >> $OUT rm -f $OUT.new -bitmaps="$($DUMPE2FS $TMPFILE 2>&1 | grep 'bitmap at' | sed -e 's/^.*Block bitmap at \([0-9]*\) .*Inode bitmap at \([0-9]*\).*$/\1,\2/g' | tr '\n' ',')" +bitmaps="$($DUMPE2FS $TMPFILE 2>&1 | grep 'bitmap at' | sed -e 's/^.*bitmap at \([0-9]*\).*$/\1/g' | tr '\n' ',')" $DUMPE2FS $TMPFILE 2>&1 | grep '^Journal features:' >> $OUT diff --git a/tests/j_short_trans/script b/tests/j_short_trans/script index c83daba..852e7a5 100644 --- a/tests/j_short_trans/script +++ b/tests/j_short_trans/script @@ -19,7 +19,7 @@ echo Exit status is $status >> $OUT.new sed -f $cmd_dir/filter.sed -e "s;$TMPFILE;test.img;" $OUT.new >> $OUT rm -f $OUT.new -bitmaps="$($DUMPE2FS $TMPFILE 2>&1 | grep 'bitmap at' | sed -e 's/^.*Block bitmap at \([0-9]*\) .*Inode bitmap at \([0-9]*\).*$/\1,\2/g' | tr '\n' ',')" +bitmaps="$($DUMPE2FS $TMPFILE 2>&1 | grep 'bitmap at' | sed -e 's/^.*bitmap at \([0-9]*\).*$/\1/g' | tr '\n' ',')" echo "debugfs write journal" >> $OUT echo "jo" > $TMPFILE.cmd diff --git a/tests/j_short_trans_64bit/script b/tests/j_short_trans_64bit/script index 7a60284..994fa21 100644 --- a/tests/j_short_trans_64bit/script +++ b/tests/j_short_trans_64bit/script @@ -19,7 +19,7 @@ echo Exit status is $status >> $OUT.new sed -f $cmd_dir/filter.sed -e "s;$TMPFILE;test.img;" $OUT.new >> $OUT rm -f $OUT.new -bitmaps="$($DUMPE2FS $TMPFILE 2>&1 | grep 'bitmap at' | sed -e 's/^.*Block bitmap at \([0-9]*\) .*Inode bitmap at \([0-9]*\).*$/\1,\2/g' | tr '\n' ',')" +bitmaps="$($DUMPE2FS $TMPFILE 2>&1 | grep 'bitmap at' | sed -e 's/^.*bitmap at \([0-9]*\).*$/\1/g' | tr '\n' ',')" $DUMPE2FS $TMPFILE 2>&1 | grep '^Journal features:' >> $OUT diff --git a/tests/j_short_trans_mcsum_64bit/script b/tests/j_short_trans_mcsum_64bit/script index bc9f09b..024346a 100644 --- a/tests/j_short_trans_mcsum_64bit/script +++ b/tests/j_short_trans_mcsum_64bit/script @@ -19,7 +19,7 @@ echo Exit status is $status >> $OUT.new sed -f $cmd_dir/filter.sed -e "s;$TMPFILE;test.img;" $OUT.new >> $OUT rm -f $OUT.new -bitmaps="$($DUMPE2FS $TMPFILE 2>&1 | grep 'bitmap at' | sed -e 's/^.*Block bitmap at \([0-9]*\) .*Inode bitmap at \([0-9]*\).*$/\1,\2/g' | tr '\n' ',')" +bitmaps="$($DUMPE2FS $TMPFILE 2>&1 | grep 'bitmap at' | sed -e 's/^.*bitmap at \([0-9]*\).*$/\1/g' | tr '\n' ',')" $DUMPE2FS $TMPFILE 2>&1 | grep '^Journal features:' >> $OUT diff --git a/tests/j_short_trans_old_csum/script b/tests/j_short_trans_old_csum/script index 52fc58f..56f8bcb 100644 --- a/tests/j_short_trans_old_csum/script +++ b/tests/j_short_trans_old_csum/script @@ -19,7 +19,7 @@ echo Exit status is $status >> $OUT.new sed -f $cmd_dir/filter.sed -e "s;$TMPFILE;test.img;" $OUT.new >> $OUT rm -f $OUT.new -bitmaps="$($DUMPE2FS $TMPFILE 2>&1 | grep 'bitmap at' | sed -e 's/^.*Block bitmap at \([0-9]*\) .*Inode bitmap at \([0-9]*\).*$/\1,\2/g' | tr '\n' ',')" +bitmaps="$($DUMPE2FS $TMPFILE 2>&1 | grep 'bitmap at' | sed -e 's/^.*bitmap at \([0-9]*\).*$/\1/g' | tr '\n' ',')" $DUMPE2FS $TMPFILE 2>&1 | grep '^Journal features:' >> $OUT diff --git a/tests/j_short_trans_open_recover/script b/tests/j_short_trans_open_recover/script index e5b772d..2a016df 100644 --- a/tests/j_short_trans_open_recover/script +++ b/tests/j_short_trans_open_recover/script @@ -19,7 +19,7 @@ echo Exit status is $status >> $OUT.new sed -f $cmd_dir/filter.sed -e "s;$TMPFILE;test.img;" $OUT.new >> $OUT rm -f $OUT.new -bitmaps="$($DUMPE2FS $TMPFILE 2>&1 | grep 'bitmap at' | sed -e 's/^.*Block bitmap at \([0-9]*\) .*Inode bitmap at \([0-9]*\).*$/\1,\2/g' | tr '\n' ',')" +bitmaps="$($DUMPE2FS $TMPFILE 2>&1 | grep 'bitmap at' | sed -e 's/^.*bitmap at \([0-9]*\).*$/\1/g' | tr '\n' ',')" echo "debugfs write journal" >> $OUT echo "jo" > $TMPFILE.cmd diff --git a/tests/j_short_trans_recover/script b/tests/j_short_trans_recover/script index 2494a2e..33d2345 100644 --- a/tests/j_short_trans_recover/script +++ b/tests/j_short_trans_recover/script @@ -19,7 +19,7 @@ echo Exit status is $status >> $OUT.new sed -f $cmd_dir/filter.sed -e "s;$TMPFILE;test.img;" $OUT.new >> $OUT rm -f $OUT.new -bitmaps="$($DUMPE2FS $TMPFILE 2>&1 | grep 'bitmap at' | sed -e 's/^.*Block bitmap at \([0-9]*\) .*Inode bitmap at \([0-9]*\).*$/\1,\2/g' | tr '\n' ',')" +bitmaps="$($DUMPE2FS $TMPFILE 2>&1 | grep 'bitmap at' | sed -e 's/^.*bitmap at \([0-9]*\).*$/\1/g' | tr '\n' ',')" echo "debugfs write journal" >> $OUT echo "jo" > $TMPFILE.cmd diff --git a/tests/j_short_trans_recover_mcsum_64bit/script b/tests/j_short_trans_recover_mcsum_64bit/script index 6076e03..b6c8c49 100644 --- a/tests/j_short_trans_recover_mcsum_64bit/script +++ b/tests/j_short_trans_recover_mcsum_64bit/script @@ -19,7 +19,7 @@ echo Exit status is $status >> $OUT.new sed -f $cmd_dir/filter.sed -e "s;$TMPFILE;test.img;" $OUT.new >> $OUT rm -f $OUT.new -bitmaps="$($DUMPE2FS $TMPFILE 2>&1 | grep 'bitmap at' | sed -e 's/^.*Block bitmap at \([0-9]*\) .*Inode bitmap at \([0-9]*\).*$/\1,\2/g' | tr '\n' ',')" +bitmaps="$($DUMPE2FS $TMPFILE 2>&1 | grep 'bitmap at' | sed -e 's/^.*bitmap at \([0-9]*\).*$/\1/g' | tr '\n' ',')" $DUMPE2FS $TMPFILE 2>&1 | grep '^Journal features:' >> $OUT diff --git a/tests/j_short_uncommitted_trans/script b/tests/j_short_uncommitted_trans/script index a988948..a1fc3b4 100644 --- a/tests/j_short_uncommitted_trans/script +++ b/tests/j_short_uncommitted_trans/script @@ -19,7 +19,7 @@ echo Exit status is $status >> $OUT.new sed -f $cmd_dir/filter.sed -e "s;$TMPFILE;test.img;" $OUT.new >> $OUT rm -f $OUT.new -bitmaps="$($DUMPE2FS $TMPFILE 2>&1 | grep 'bitmap at' | sed -e 's/^.*Block bitmap at \([0-9]*\) .*Inode bitmap at \([0-9]*\).*$/\1,\2/g' | tr '\n' ',')" +bitmaps="$($DUMPE2FS $TMPFILE 2>&1 | grep 'bitmap at' | sed -e 's/^.*bitmap at \([0-9]*\).*$/\1/g' | tr '\n' ',')" echo "debugfs write journal" >> $OUT echo "jo" > $TMPFILE.cmd diff --git a/tests/j_short_uncommitted_trans_mcsum_64bit/script b/tests/j_short_uncommitted_trans_mcsum_64bit/script index 43313bb..a0b8c7f 100644 --- a/tests/j_short_uncommitted_trans_mcsum_64bit/script +++ b/tests/j_short_uncommitted_trans_mcsum_64bit/script @@ -19,7 +19,7 @@ echo Exit status is $status >> $OUT.new sed -f $cmd_dir/filter.sed -e "s;$TMPFILE;test.img;" $OUT.new >> $OUT rm -f $OUT.new -bitmaps="$($DUMPE2FS $TMPFILE 2>&1 | grep 'bitmap at' | sed -e 's/^.*Block bitmap at \([0-9]*\) .*Inode bitmap at \([0-9]*\).*$/\1,\2/g' | tr '\n' ',')" +bitmaps="$($DUMPE2FS $TMPFILE 2>&1 | grep 'bitmap at' | sed -e 's/^.*bitmap at \([0-9]*\).*$/\1/g' | tr '\n' ',')" $DUMPE2FS $TMPFILE 2>&1 | grep '^Journal features:' >> $OUT diff --git a/tests/m_64bit_flexbg/expect.1 b/tests/m_64bit_flexbg/expect.1 index 3635318..cfa3bc9 100644 --- a/tests/m_64bit_flexbg/expect.1 +++ b/tests/m_64bit_flexbg/expect.1 @@ -48,7 +48,8 @@ Default directory hash: half_md4 Group 0: (Blocks 1-1023) Primary superblock at 1, Group descriptors at 2-2 Reserved GDT blocks at 3-9 - Block bitmap at 10 (+9), Inode bitmap at 26 (+25) + Block bitmap at 10 (+9) + Inode bitmap at 26 (+25) Inode table at 42-57 (+41) 982 free blocks, 117 free inodes, 2 directories Free blocks: 24-25, 28-41, 58-1023 diff --git a/tests/m_bigjournal/script b/tests/m_bigjournal/script index 4c1ed9a..576d99e 100644 --- a/tests/m_bigjournal/script +++ b/tests/m_bigjournal/script @@ -1,8 +1,11 @@ DESCRIPTION="journal over 4GB in size" FS_SIZE=11000000 +DUMPE2FS_IGNORE_80COL=1 +export DUMPE2FS_IGNORE_80COL MKE2FS_OPTS="-t ext4 -G 512 -N 1280 -J size=5000 -q -E lazy_journal_init,lazy_itable_init,nodiscard" if [ $(uname -s) = "Darwin" ]; then echo "$test_name: $DESCRIPTION: skipped for HFS+ (no sparse files)" return 0 fi . $cmd_dir/run_mke2fs +unset DUMPE2FS_IGNORE_80COL diff --git a/tests/m_dasd_bs/expect.1 b/tests/m_dasd_bs/expect.1 index 75a401d..0e55e8f 100644 --- a/tests/m_dasd_bs/expect.1 +++ b/tests/m_dasd_bs/expect.1 @@ -48,7 +48,8 @@ Default directory hash: half_md4 Group 0: (Blocks 0-16383) Primary superblock at 0, Group descriptors at 1-1 Reserved GDT blocks at 2-32 - Block bitmap at 33 (+33), Inode bitmap at 34 (+34) + Block bitmap at 33 (+33) + Inode bitmap at 34 (+34) Inode table at 35-546 (+35) 15827 free blocks, 8181 free inodes, 2 directories Free blocks: 557-16383 @@ -56,7 +57,8 @@ Group 0: (Blocks 0-16383) Group 1: (Blocks 16384-32767) Backup superblock at 16384, Group descriptors at 16385-16385 Reserved GDT blocks at 16386-16416 - Block bitmap at 16417 (+33), Inode bitmap at 16418 (+34) + Block bitmap at 16417 (+33) + Inode bitmap at 16418 (+34) Inode table at 16419-16930 (+35) 15837 free blocks, 8192 free inodes, 0 directories Free blocks: 16931-32767 diff --git a/tests/m_desc_size_128/script b/tests/m_desc_size_128/script index de3def9..a4def21 100644 --- a/tests/m_desc_size_128/script +++ b/tests/m_desc_size_128/script @@ -1,4 +1,7 @@ DESCRIPTION="enable 128-byte group descriptor on mkfs" FS_SIZE=131072 +DUMPE2FS_IGNORE_80COL=1 +export DUMPE2FS_IGNORE_80COL MKE2FS_OPTS="-b 1024 -O 64bit,extents -g 1024 -N 8192 -E desc_size=128" . $cmd_dir/run_mke2fs +unset DUMPE2FS_IGNORE_80COL diff --git a/tests/m_extent_journal/script b/tests/m_extent_journal/script index 5e0cac2..efade21 100644 --- a/tests/m_extent_journal/script +++ b/tests/m_extent_journal/script @@ -1,4 +1,7 @@ DESCRIPTION="extent-mapped journal" FS_SIZE=65536 +DUMPE2FS_IGNORE_80COL=1 +export DUMPE2FS_IGNORE_80COL MKE2FS_OPTS="-O extents -j" . $cmd_dir/run_mke2fs +unset DUMPE2FS_IGNORE_80COL diff --git a/tests/m_large_file/expect.1 b/tests/m_large_file/expect.1 index 8ab2711..4acca41 100644 --- a/tests/m_large_file/expect.1 +++ b/tests/m_large_file/expect.1 @@ -48,7 +48,8 @@ Default directory hash: half_md4 Group 0: (Blocks 0-16383) Primary superblock at 0, Group descriptors at 1-1 Reserved GDT blocks at 2-4 - Block bitmap at 5 (+5), Inode bitmap at 6 (+6) + Block bitmap at 5 (+5) + Inode bitmap at 6 (+6) Inode table at 7-10 (+7) 16367 free blocks, 53 free inodes, 2 directories Free blocks: 17-16383 diff --git a/tests/m_meta_bg/script b/tests/m_meta_bg/script index 7ca2bea..5e285b4 100644 --- a/tests/m_meta_bg/script +++ b/tests/m_meta_bg/script @@ -1,4 +1,7 @@ DESCRIPTION="meta blockgroup feature" FS_SIZE=131072 +DUMPE2FS_IGNORE_80COL=1 +export DUMPE2FS_IGNORE_80COL MKE2FS_OPTS="-O meta_bg,sparse_super,^resize_inode -g 1024" . $cmd_dir/run_mke2fs +unset DUMPE2FS_IGNORE_80COL diff --git a/tests/m_mmp/expect.1 b/tests/m_mmp/expect.1 index aec0a84..a1452e6 100644 --- a/tests/m_mmp/expect.1 +++ b/tests/m_mmp/expect.1 @@ -51,7 +51,8 @@ MMP update interval: 5 Group 0: (Blocks 0-32767) Primary superblock at 0, Group descriptors at 1-1 Reserved GDT blocks at 2-16 - Block bitmap at 17 (+17), Inode bitmap at 18 (+18) + Block bitmap at 17 (+17) + Inode bitmap at 18 (+18) Inode table at 19-1042 (+19) 31718 free blocks, 32757 free inodes, 2 directories Free blocks: 1050-32767 @@ -59,7 +60,8 @@ Group 0: (Blocks 0-32767) Group 1: (Blocks 32768-65535) Backup superblock at 32768, Group descriptors at 32769-32769 Reserved GDT blocks at 32770-32784 - Block bitmap at 32785 (+17), Inode bitmap at 32786 (+18) + Block bitmap at 32785 (+17) + Inode bitmap at 32786 (+18) Inode table at 32787-33810 (+19) 31725 free blocks, 32768 free inodes, 0 directories Free blocks: 33811-65535 diff --git a/tests/m_no_opt/script b/tests/m_no_opt/script index 6d1d0eb..223f117 100644 --- a/tests/m_no_opt/script +++ b/tests/m_no_opt/script @@ -1,4 +1,7 @@ DESCRIPTION="no filesystem extensions" FS_SIZE=65536 +DUMPE2FS_IGNORE_80COL=1 +export DUMPE2FS_IGNORE_80COL MKE2FS_OPTS="-O ^sparse_super,^filetype,^resize_inode,^dir_index,^ext_attr" . $cmd_dir/run_mke2fs +unset DUMPE2FS_IGNORE_80COL diff --git a/tests/m_quota/script b/tests/m_quota/script index 36ab630..fe63939 100644 --- a/tests/m_quota/script +++ b/tests/m_quota/script @@ -5,4 +5,7 @@ if [ "$QUOTA" != "y" ]; then echo "$test_name: $DESCRIPTION: skipped" return 0 fi +DUMPE2FS_IGNORE_80COL=1 +export DUMPE2FS_IGNORE_80COL . $cmd_dir/run_mke2fs +unset DUMPE2FS_IGNORE_80COL diff --git a/tests/m_raid_opt/script b/tests/m_raid_opt/script index 296fe94..8c859e0 100644 --- a/tests/m_raid_opt/script +++ b/tests/m_raid_opt/script @@ -1,4 +1,7 @@ DESCRIPTION="raid options" FS_SIZE=131072 MKE2FS_OPTS="-E stride=13 -O sparse_super -g 1024" +DUMPE2FS_IGNORE_80COL=1 +export DUMPE2FS_IGNORE_80COL . $cmd_dir/run_mke2fs +unset DUMPE2FS_IGNORE_80COL diff --git a/tests/m_root_owner/expect.1 b/tests/m_root_owner/expect.1 index cd94993..30d119e 100644 --- a/tests/m_root_owner/expect.1 +++ b/tests/m_root_owner/expect.1 @@ -46,7 +46,8 @@ Default directory hash: half_md4 Group 0: (Blocks 1-1023) Primary superblock at 1, Group descriptors at 2-2 Reserved GDT blocks at 3-5 - Block bitmap at 6 (+5), Inode bitmap at 7 (+6) + Block bitmap at 6 (+5) + Inode bitmap at 7 (+6) Inode table at 8-23 (+7) 986 free blocks, 117 free inodes, 2 directories Free blocks: 38-1023 diff --git a/tests/m_std/script b/tests/m_std/script index a2f2cda..61c50c7 100644 --- a/tests/m_std/script +++ b/tests/m_std/script @@ -1,3 +1,6 @@ DESCRIPTION="standard filesystem options" +DUMPE2FS_IGNORE_80COL=1 +export DUMPE2FS_IGNORE_80COL FS_SIZE=65536 . $cmd_dir/run_mke2fs +unset DUMPE2FS_IGNORE_80COL diff --git a/tests/m_uninit/script b/tests/m_uninit/script index 0b565ac..d4d373a 100644 --- a/tests/m_uninit/script +++ b/tests/m_uninit/script @@ -1,4 +1,7 @@ DESCRIPTION="uninitialized group feature" +DUMPE2FS_IGNORE_80COL=1 +export DUMPE2FS_IGNORE_80COL FS_SIZE=131072 MKE2FS_OPTS="-O uninit_bg" . $cmd_dir/run_mke2fs +unset DUMPE2FS_IGNORE_80COL diff --git a/tests/r_move_itable/script b/tests/r_move_itable/script index e567888..3f02a79 100644 --- a/tests/r_move_itable/script +++ b/tests/r_move_itable/script @@ -33,7 +33,7 @@ $DEBUGFS -R "set_super_value mkfs_time 0" -w $TMPFILE >/dev/null 2>&1 $TUNE2FS -c 20 -U clear $TMPFILE >/dev/null 2>&1 echo dumpe2fs test.img >> $OUT -$DUMPE2FS $TMPFILE 2>&1 | sed -f $cmd_dir/filter.sed >> $OUT +$DUMPE2FS $TMPFILE 2>&1 | sed -f $cmd_dir/filter.sed -e '/Block bitmap.*$/N;s/\n Inode bitmap/, Inode bitmap/g' >> $OUT echo "--------------------------------" >> $OUT @@ -53,7 +53,7 @@ $DEBUGFS -R "set_super_value mkfs_time 0" -w $TMPFILE >/dev/null 2>&1 $TUNE2FS -c 20 -U clear $TMPFILE >/dev/null 2>&1 echo dumpe2fs test.img >> $OUT -$DUMPE2FS $TMPFILE 2>&1 | sed -f $cmd_dir/filter.sed >> $OUT +$DUMPE2FS $TMPFILE 2>&1 | sed -f $cmd_dir/filter.sed -e '/Block bitmap.*$/N;s/\n Inode bitmap/, Inode bitmap/g' >> $OUT echo "--------------------------------" >> $OUT @@ -73,7 +73,7 @@ $DEBUGFS -R "set_super_value mkfs_time 0" -w $TMPFILE >/dev/null 2>&1 $TUNE2FS -c 20 -U clear $TMPFILE >/dev/null 2>&1 echo dumpe2fs test.img >> $OUT -$DUMPE2FS $TMPFILE 2>&1 | sed -f $cmd_dir/filter.sed >> $OUT +$DUMPE2FS $TMPFILE 2>&1 | sed -f $cmd_dir/filter.sed -e '/Block bitmap.*$/N;s/\n Inode bitmap/, Inode bitmap/g' >> $OUT echo "--------------------------------" >> $OUT @@ -93,7 +93,7 @@ $DEBUGFS -R "set_super_value mkfs_time 0" -w $TMPFILE >/dev/null 2>&1 $TUNE2FS -c 20 -U clear $TMPFILE >/dev/null 2>&1 echo dumpe2fs test.img >> $OUT -$DUMPE2FS $TMPFILE 2>&1 | sed -f $cmd_dir/filter.sed >> $OUT +$DUMPE2FS $TMPFILE 2>&1 | sed -f $cmd_dir/filter.sed -e '/Block bitmap.*$/N;s/\n Inode bitmap/, Inode bitmap/g' >> $OUT rm -f $TMPFILE diff --git a/tests/r_resize_inode/script b/tests/r_resize_inode/script index 0f12138..4e3eb19 100644 --- a/tests/r_resize_inode/script +++ b/tests/r_resize_inode/script @@ -33,7 +33,7 @@ $DEBUGFS -R "set_super_value mkfs_time 0" -w $TMPFILE >/dev/null 2>&1 $TUNE2FS -c 20 -U clear $TMPFILE >/dev/null 2>&1 echo dumpe2fs test.img >> $OUT -$DUMPE2FS $TMPFILE 2>&1 | sed -f $cmd_dir/filter.sed >> $OUT +$DUMPE2FS $TMPFILE 2>&1 | sed -f $cmd_dir/filter.sed -e '/Block bitmap.*$/N;s/\n Inode bitmap/, Inode bitmap/g' >> $OUT echo "--------------------------------" >> $OUT @@ -59,7 +59,7 @@ $DEBUGFS -R "set_super_value mkfs_time 0" -w $TMPFILE >/dev/null 2>&1 $TUNE2FS -c 20 -U clear $TMPFILE >/dev/null 2>&1 echo dumpe2fs test.img >> $OUT -$DUMPE2FS $TMPFILE 2>&1 | sed -f $cmd_dir/filter.sed >> $OUT +$DUMPE2FS $TMPFILE 2>&1 | sed -f $cmd_dir/filter.sed -e '/Block bitmap.*$/N;s/\n Inode bitmap/, Inode bitmap/g' >> $OUT echo "--------------------------------" >> $OUT @@ -79,7 +79,7 @@ $DEBUGFS -R "set_super_value mkfs_time 0" -w $TMPFILE >/dev/null 2>&1 $TUNE2FS -c 20 -U clear $TMPFILE >/dev/null 2>&1 echo dumpe2fs test.img >> $OUT -$DUMPE2FS $TMPFILE 2>&1 | sed -f $cmd_dir/filter.sed >> $OUT +$DUMPE2FS $TMPFILE 2>&1 | sed -f $cmd_dir/filter.sed -e '/Block bitmap.*$/N;s/\n Inode bitmap/, Inode bitmap/g' >> $OUT rm -f $TMPFILE cmp -s $OUT $EXP -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html