aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2018-05-29 18:55:59 +0200
committerEryu Guan <guaneryu@gmail.com>2018-06-03 22:16:15 +0800
commit042fcd24dbbe27ec235c03011e5b6538857e135e (patch)
tree20a2021369faafb8cd4a2bccc954bbdd20cb7693
parent90b383e215bad8a80f699e799b5c911b92843165 (diff)
downloadxfstests-dev-042fcd24dbbe27ec235c03011e5b6538857e135e.tar.gz
ext4/032: Fix up resize2fs usage
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>
-rwxr-xr-xtests/ext4/0323
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/ext4/032 b/tests/ext4/032
index 22cd533be8..13faa26a0f 100755
--- a/tests/ext4/032
+++ b/tests/ext4/032
@@ -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 \
@@ -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