From patchwork Mon Jul 31 09:36:56 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xiao Yang X-Patchwork-Id: 9871331 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 96BA260375 for ; Mon, 31 Jul 2017 09:37:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8C784284C7 for ; Mon, 31 Jul 2017 09:37:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7FC1F2858F; Mon, 31 Jul 2017 09:37:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0719A284C7 for ; Mon, 31 Jul 2017 09:37:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751046AbdGaJhP (ORCPT ); Mon, 31 Jul 2017 05:37:15 -0400 Received: from cn.fujitsu.com ([222.73.24.84]:31055 "EHLO song.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1750923AbdGaJhP (ORCPT ); Mon, 31 Jul 2017 05:37:15 -0400 X-IronPort-AV: E=Sophos;i="5.20,367,1444665600"; d="scan'208";a="1500113" Received: from unknown (HELO cn.fujitsu.com) ([10.167.33.5]) by song.cn.fujitsu.com with ESMTP; 31 Jul 2017 17:37:07 +0800 Received: from G08CNEXCHPEKD02.g08.fujitsu.local (unknown [10.167.33.83]) by cn.fujitsu.com (Postfix) with ESMTP id 7706346BA946; Mon, 31 Jul 2017 17:37:06 +0800 (CST) Received: from localhost.localdomain (10.167.220.81) by G08CNEXCHPEKD02.g08.fujitsu.local (10.167.33.89) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 31 Jul 2017 17:37:08 +0800 From: Xiao Yang To: CC: , Xiao Yang Subject: [PATCH v2] common/config: add acl and user_xattr support for TEST_DEV Date: Mon, 31 Jul 2017 17:36:56 +0800 Message-ID: <1501493816-29678-1-git-send-email-yangx.jy@cn.fujitsu.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <20170731085518.GI9167@eguan.usersys.redhat.com> References: <20170731085518.GI9167@eguan.usersys.redhat.com> MIME-Version: 1.0 X-Originating-IP: [10.167.220.81] X-yoursite-MailScanner-ID: 7706346BA946.A7FCA X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: yangx.jy@cn.fujitsu.com Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- common/config | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/config b/common/config index 80598d0..4f7fba8 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