common/config: add acl and user_xattr support for TEST_DEV
authorXiao Yang <yangx.jy@cn.fujitsu.com>
Mon, 31 Jul 2017 09:36:56 +0000 (17:36 +0800)
committerEryu Guan <eguan@redhat.com>
Mon, 7 Aug 2017 11:55:43 +0000 (19:55 +0800)
commitadf56068b5c29e06b65241425a7bf48bbfe82d64
tree459107d2d30f15b59fa0a599217e576fb8731588
parent65e0cd588d7ea0e47948b288998a45e506847e41
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 <yangx.jy@cn.fujitsu.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
common/config