From: Xiao Yang Date: Mon, 31 Jul 2017 09:36:56 +0000 (+0800) Subject: common/config: add acl and user_xattr support for TEST_DEV X-Git-Tag: v2022.05.01~1923 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=adf56068b5c29e06b65241425a7bf48bbfe82d64;p=users%2Fhch%2Fxfstests-dev.git common/config: add acl and user_xattr support for TEST_DEV On RHEL6.9GA, generic/097 fails for ext4 because _test_cycle_mount() remount ext4 without the user_xattr option, so extended attributes are not supported by ext4. On some old kernels, ext4 filesystem can not be mounted with acl and user_xattr options by default. The following patch has enabled these options by default: 'ea6633369458("ext4: enable acls and user_xattr by default")' We add acl and user_xattr support in _test_mount_opts(), and it works normally on all kernels. Signed-off-by: Xiao Yang Reviewed-by: Eryu Guan Signed-off-by: Eryu Guan --- diff --git a/common/config b/common/config index d08d14b35..71798f0ad 100644 --- a/common/config +++ b/common/config @@ -335,6 +335,10 @@ _test_mount_opts() glusterfs) export TEST_FS_MOUNT_OPTS=$GLUSTERFS_MOUNT_OPTIONS ;; + ext2|ext3|ext4|ext4dev) + # acls & xattrs aren't turned on by default on older ext$FOO + export TEST_FS_MOUNT_OPTS="-o acl,user_xattr $EXT_MOUNT_OPTIONS" + ;; *) ;; esac