[PATCH] test-appliance: fix lack of "-o" in F2FS_MOUNT_OPTIONS

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]



If F2FS_MOUNT_OPTIONS is set, while MNTOPTS is not set, "-o" is
missing in F2FS_MOUNT_OPTIONS. As a result, mount filesystem
will fail.

Signed-off-by: Sheng Yong <shengyong1@xxxxxxxxxx>
---
 kvm-xfstests/test-appliance/files/root/fs/f2fs/config | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/kvm-xfstests/test-appliance/files/root/fs/f2fs/config b/kvm-xfstests/test-appliance/files/root/fs/f2fs/config
index 45fb2dd..14d5d6e 100644
--- a/kvm-xfstests/test-appliance/files/root/fs/f2fs/config
+++ b/kvm-xfstests/test-appliance/files/root/fs/f2fs/config
@@ -30,9 +30,12 @@ function setup_mount_opts()
 	if test -n "$F2FS_MOUNT_OPTIONS" ; then
 	    export F2FS_MOUNT_OPTIONS="$F2FS_MOUNT_OPTIONS,$MNTOPTS"
 	else
-	    export F2FS_MOUNT_OPTIONS="-o $MNTOPTS"
+	    export F2FS_MOUNT_OPTIONS="$MNTOPTS"
 	fi
     fi
+    if test -n "$F2FS_MOUNT_OPTIONS" ; then
+        export F2FS_MOUNT_OPTIONS="-o $F2FS_MOUNT_OPTIONS"
+    fi
 }
 
 function get_mkfs_opts()
-- 
2.14.1

--
To unsubscribe from this list: send the line "unsubscribe fstests" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Filesystems Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux