Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp680791pxu; Thu, 3 Dec 2020 09:58:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJzBh4/qJORic6jxVxITaevKEi4GEN8HOtV8n/DX89HrV/ygtcEotSjvRgimjysycWRY4E7x X-Received: by 2002:a17:906:6dc3:: with SMTP id j3mr3813664ejt.320.1607018311119; Thu, 03 Dec 2020 09:58:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607018311; cv=none; d=google.com; s=arc-20160816; b=ljGBtyWUHtDNr/crICyXIyp65nyHoUXbHGp6OYNoULtjCU2Gweg7W6taHZMfQ76d3w MhPoAM8bZvQR50zg5QClFTtNjUg5l/+dMp4vDMY4b5EG4RSSfVG8CBU5ue8NdPcweThX XkXMEY3X26E5nqog9BZmBq9P8J0aJLUb1jVmjMMQGjJHBlRzUvdaHDPLqxi7muliMLpy 1TQXxtr8jsqxIMYAG9PKIItHrwBAYjloWjd4hHIJ+Iftaw3IAb0VJ/re0UtW73blqjyh LScd33dRDnwnA7rbi8yaS3t8tIJWYeXngMP5r2qS2nCSflnRd7GnhaPJBO7Kdo+m2LnS xaCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:subject:from :references:cc:to; bh=/Nahf5wyPOSVj5fivqp+T+dLuDdZb3dsVEYXSMiPmIU=; b=Z4CcB0uXM57hFSy1nyD5HzC3+GUWT07+GiLz8lH/8GHQv+Nm0sp9cHM//+0mOoauoJ COJKzOn0erKpoF9T4ZoGKgBdHWdDd5qgK3GRULltlU7LXe0EsDBDHPjoJrlBsZdqB02w 3/NMH2nr1zEnvd4yLl1DNpwsA/uy56euS1PCkTOMC85piK6+4n50JYRLz6iEVMr660NV Y7XIDb95xtE1RQWKQ/A+UcUBCe845wq+nUSDlwp9KBExP2yMsk8zYnX2kPhAFYiU2q/2 5UWoAtfMsKdfVUTKNvhpGheRk6YO+WekvQhU8iCiuLpehjlRQCSZI2EPH4rLAtb/l8sW yBig== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 f5si1476258ejw.117.2020.12.03.09.58.07; Thu, 03 Dec 2020 09:58:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727099AbgLCR4c (ORCPT + 99 others); Thu, 3 Dec 2020 12:56:32 -0500 Received: from sandeen.net ([63.231.237.45]:44968 "EHLO sandeen.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725987AbgLCR4c (ORCPT ); Thu, 3 Dec 2020 12:56:32 -0500 Received: from liberator.sandeen.net (liberator.sandeen.net [10.0.0.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by sandeen.net (Postfix) with ESMTPSA id 306A17906; Thu, 3 Dec 2020 11:55:32 -0600 (CST) To: Christoph Hellwig , ira.weiny@intel.com Cc: fstests@vger.kernel.org, Eric Sandeen , linux-kernel@vger.kernel.org, "Darrick J. Wong" , Dan Williams , Dave Chinner , "Theodore Y. Ts'o" , Jan Kara , Jeff Moyer , linux-ext4@vger.kernel.org, linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, David Howells References: <20201202214145.1563433-1-ira.weiny@intel.com> <20201203081556.GA15306@lst.de> From: Eric Sandeen Subject: Re: [PATCH] common/rc: Fix _check_s_dax() Message-ID: Date: Thu, 3 Dec 2020 11:55:50 -0600 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 MIME-Version: 1.0 In-Reply-To: <20201203081556.GA15306@lst.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/3/20 2:15 AM, Christoph Hellwig wrote: > On Wed, Dec 02, 2020 at 01:41:45PM -0800, ira.weiny@intel.com wrote: >> From: Ira Weiny >> >> There is a conflict with the user visible statx bits 'mount root' and >> 'dax'. The kernel is changing the dax bit to correct this conflict.[1] >> >> Adjust _check_s_dax() to use the new bit. Because DAX tests do not run >> on root mounts, STATX_ATTR_MOUNT_ROOT should always be 0, therefore we >> can allow either bit to indicate DAX and cover any kernel which may be >> running. >> >> [1] https://lore.kernel.org/lkml/3e28d2c7-fbe5-298a-13ba-dcd8fd504666@redhat.com/ >> >> Signed-off-by: Ira Weiny >> --- >> >> I went ahead and used Christoph's suggestion regarding using both bits. > > That wasn't my suggestion. I think we should always error out when > the bit value shared with STATX_ATTR_MOUNT_ROOT is seen. Because that > means the kernel is not using or fixed ABI we agreed to use going > forward. *nod* and my suggestion was to explicitly test for the old/wrong value and offer the test-runner a hint about why it may have been set (missing the fix commit), but we should still ultimately fail the test when it is seen. -Eric