Skip to content

Commit

Permalink
ext4/032: Fix up resize2fs usage
Browse files Browse the repository at this point in the history
The test uses resize2fs(8) without proper feature test macro and
also without specifying full path to it. Fix that.

Signed-off-by: Jan Kara <jack@suse.cz>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
  • Loading branch information
jankara authored and guaneryu committed Jun 3, 2018
1 parent 90b383e commit 042fcd2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/ext4/032
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ ext4_online_resize()

echo "+++ resize fs to $final_size" | tee -a $seqres.full

resize2fs -f ${LOOP_DEVICE} $final_size >$tmp.resize2fs 2>&1
$RESIZE2FS_PROG -f ${LOOP_DEVICE} $final_size >$tmp.resize2fs 2>&1
if [ $? -ne 0 ]; then
if [ $check_if_supported -eq 1 ]; then
grep -iq "operation not supported" $tmp.resize2fs \
Expand Down Expand Up @@ -114,6 +114,7 @@ _require_scratch
# We use resize_inode to make sure that block group descriptor table
# can be extended.
_require_scratch_ext4_feature "bigalloc,resize_inode"
_require_command "$RESIZE2FS_PROG" resize2fs

_scratch_mkfs >>$seqres.full 2>&1
_scratch_mount
Expand Down

0 comments on commit 042fcd2

Please sign in to comment.