Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1124047ybg; Tue, 2 Jun 2020 01:52:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJSUUuvTnIv+5N4N+NLvtobpPzfkhvXph0jb2th7SNvpcvCFQd/yJ3fLzhPfhAFWii651P X-Received: by 2002:a17:906:6b92:: with SMTP id l18mr23305755ejr.145.1591087952462; Tue, 02 Jun 2020 01:52:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591087952; cv=none; d=google.com; s=arc-20160816; b=y/EvhraD7lhtGZZFAQfiCCIB36wkDinPORwCDKt6q1JAsp/kjd5rSkFWzu1YRkU+6w FbLUflZJXD1m+85G+xIl3/nBPcZYs4NBz9T1PXOHHJQ6yVxZv6RedR4XiSNe9b4ANrKM u12lyvxKHXr4tgrNoIirWSAqzTL3/TNsYZ81PZJeAJiBfktqT/DUmso1TN1yUUr9CAPB eeYiWSajyoqvKCSkINVj/rSwYhY4JysqF6CNv6J3AfTC1198UvR4sbiUyT+0LjuLpQhP e1T3otxs/nLVJxAyb8a03I1E4tQaOLBULlvxIVSvVV8z5km/IhiDjpNimxtNVrBhps5K 2sdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :references:subject:cc:to:mime-version:user-agent:from:date :message-id; bh=b1jpCelKSnSHwLThuBP4MVSeAc9ZD+q4M6GtvZ9mwTA=; b=QK2Wxr/eOL6f5YTUtQz40PpXdhFiTLh6E1/x4pmqhIQjvz7sZ+YmCdavUUc3NmsU0d a2xRSL+gRZkFf91YtWiwPtA3owKeCdeKiVPEeAKcVv1peUSfDuNjVpkrliV44T5ddUWO 7752V+D85diW5gXNAdAIFhOhwS+ALGgJuZGNakEMTtGNOVE+kAYDH67ct2tdEaERKPEz GPkAIy7cb3qWHfczcPy75qQDQkVNfOGvdyQJ/Nhe4MVrHhbGmDAIW2wgMiEl0R+zCV9k GZzj5wbUn8FxB1WCw2D9p78kqpjGnRAL0BXYwIIHQhzDyePqBkXx4gO+a2iICbecQEWt NWZw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j11si1179131ejv.117.2020.06.02.01.52.00; Tue, 02 Jun 2020 01:52:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726198AbgFBIvz (ORCPT + 99 others); Tue, 2 Jun 2020 04:51:55 -0400 Received: from mail.cn.fujitsu.com ([183.91.158.132]:29435 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725811AbgFBIvz (ORCPT ); Tue, 2 Jun 2020 04:51:55 -0400 X-IronPort-AV: E=Sophos;i="5.73,463,1583164800"; d="scan'208";a="93649971" Received: from unknown (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 02 Jun 2020 16:51:51 +0800 Received: from G08CNEXMBPEKD06.g08.fujitsu.local (unknown [10.167.33.206]) by cn.fujitsu.com (Postfix) with ESMTP id 7007A4BCC8B1; Tue, 2 Jun 2020 16:51:50 +0800 (CST) Received: from [10.167.220.69] (10.167.220.69) by G08CNEXMBPEKD06.g08.fujitsu.local (10.167.33.206) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 2 Jun 2020 16:51:50 +0800 Message-ID: <5ED61324.6010300@cn.fujitsu.com> Date: Tue, 2 Jun 2020 16:51:48 +0800 From: Xiao Yang User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.2; zh-CN; rv:1.9.2.18) Gecko/20110616 Thunderbird/3.1.11 MIME-Version: 1.0 To: "Darrick J. Wong" CC: , , , Dan Williams , Dave Chinner , Christoph Hellwig , "Theodore Y. Ts'o" , Jan Kara , Jeff Moyer , , , Subject: Re: [PATCH] xfs/XXX: Add xfs/XXX References: <20200413054419.1560503-1-ira.weiny@intel.com> <20200413163025.GB6742@magnolia> In-Reply-To: <20200413163025.GB6742@magnolia> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.167.220.69] X-ClientProxiedBy: G08CNEXCHPEKD05.g08.fujitsu.local (10.167.33.203) To G08CNEXMBPEKD06.g08.fujitsu.local (10.167.33.206) X-yoursite-MailScanner-ID: 7007A4BCC8B1.AB2BC X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: yangx.jy@cn.fujitsu.com X-Spam-Status: No Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On 2020/4/14 0:30, Darrick J. Wong wrote: > This might be a good time to introduce a few new helpers: > > _require_scratch_dax ("Does $SCRATCH_DEV support DAX?") > _require_scratch_dax_mountopt ("Does the fs support the DAX mount options?") > _require_scratch_daX_iflag ("Does the fs support FS_XFLAG_DAX?") Hi Darrick, Now, I am trying to introduce these new helpers and have some questions: 1) There are five testcases related to old dax implementation, should we only convert them to new dax implementation or make them compatible with old and new dax implementation? 2) I think _require_xfs_io_command "chattr" "x" is enough to check if fs supports FS_XFLAG_DAX. Is it necessary to add _require_scratch_dax_iflag()? like this: _require_scratch_dax_iflag() { _require_xfs_io_command "chattr" "x" } Best Regards, Xiao Yang