* [PATCH] ext4/002: Fix obsolete TEST_DEV/TEST_DIR in _check_ext4_eof_flag()
@ 2018-11-29 7:15 Xiao Yang
0 siblings, 0 replies; only message in thread
From: Xiao Yang @ 2018-11-29 7:15 UTC (permalink / raw)
To: fstests; +Cc: Xiao Yang
Commit 6b06a9bb6fb0 has used SCRATCH_DEV/SCRATCH_MNT rather than
TEST_DEV/TEST_DIR for holding the test files, so we need to use
SCRATCH_DEV/SCRATCH_MNT in _check_ext4_eof_flag() as well.
Fixes: 6b06a9bb6fb0 ("ext4/002: Work with 64k block size")
Signed-off-by: Xiao Yang <yangx.jy@cn.fujitsu.com>
---
tests/ext4/002 | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/tests/ext4/002 b/tests/ext4/002
index b911b1a..986834b 100755
--- a/tests/ext4/002
+++ b/tests/ext4/002
@@ -62,11 +62,11 @@ _check_ext4_eof_flag()
if [ "${FSTYP}" == "ext4" ]; then
bit_set=1
- # Unmount the ${TEST_DEV}
- _test_unmount
+ # Unmount the ${SCRATCH_DEV}
+ _scratch_unmount
# Run debugfs to gather file_parameters - specifically iflags.
- file_params=`debugfs ${TEST_DEV} -R "stat ${1}" 2>&1 | grep -e Flags:`
+ file_params=`debugfs ${SCRATCH_DEV} -R "stat ${1}" 2>&1 | grep -e Flags:`
iflags=${file_params#*Flags: }
# Ensure that the iflags value was parsed correctly.
@@ -92,8 +92,8 @@ _check_ext4_eof_flag()
exit ${status}
fi
- # Mount the ${TEST_DEV}
- mount ${TEST_DEV} -t ${FSTYP} ${TEST_DIR}
+ # Mount the ${SCRATCH_DEV}
+ _scratch_mount
fi
}
--
1.8.3.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2018-11-29 18:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-29 7:15 [PATCH] ext4/002: Fix obsolete TEST_DEV/TEST_DIR in _check_ext4_eof_flag() Xiao Yang
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.