common: no need to parse config file in new

I saw "new" failed the TEST_DEV/SCRATCH_DEV validation when TEST_DEV or
SCRATCH_DEV points to directory, which is needed in overlayfs testing.

"new" only generates test template and doesn't need common/config to
parse and validate TEST_DEV/SCRATCH_DEV etc., so just returns after
setting all needed commands.

Signed-off-by: Eryu Guan <eguan@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
Eryu Guan
2016-02-08 09:27:14 +11:00
committed by Dave Chinner
parent 931e5cb3ef
commit 4a32170921
+5
View File
@@ -270,6 +270,11 @@ fi
rm -f /tmp/crc_check.img
export XFS_MKFS_HAS_NO_META_SUPPORT
# new doesn't need config file parsed, we can stop here
if [ "$iam" == "new" ]; then
return 0
fi
_mount_opts()
{
case $FSTYP in