Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3487637pxb; Mon, 9 Nov 2020 12:28:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJy7ROWntHITJLg53Th46bkwim1qwGuJO1l+RGMAlEk1EywQ5G3yzTrLZEtVVsnuQ0nVHZ40 X-Received: by 2002:a17:906:adcd:: with SMTP id lb13mr15913430ejb.362.1604953736020; Mon, 09 Nov 2020 12:28:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604953736; cv=none; d=google.com; s=arc-20160816; b=L6ryQGwFtnPbJms8HqozrqlkO0F757RXMep2uRtVQZ5HsygRM+mzc9M6WeLsvlKhYo qiQW3Ae7BaYOBaDlTw/2iCwjSHlUi4JO1nmAChBhf3cxFQN3gLaVkP/q1nuACo0bSf1e U3Ss8V6pewmuGKViW712wKhe3eC0571k9hEV+RM5C7xEyvqzcgnC3U5j4Zz5TiOxWlie yn4OIH2Zop9jWCdfiZvPVUnHD/Wt51pJMLuRHDGrT/5Fjp0uYBH42YuovrrvnsLzniKx EjXPgACVnqi/VSRisZefFkw/3DBZBvZU6p3/SBmKnzzlgsY9R6GKkieKxMNsrMw6hmwG KLdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=GCDjBX7ishFyiO2pBDi0gc1tDn9WTny4aeFIyL4VG/k=; b=Ov3NKgyiRCDpNPzx9fsWtcoYSJoiqsBT9IOIwsqh5OoaATcffN2YbADQ0KV4Iwhc7h jFy1r/ogYjM6Y5iVyTot+dZmg5X+T0LTy5wnEiMJYpwhLxPb3SOjWph+jeqIwuRUDzbI znQz6jqYxtsPbVZQLzpqinQdFAD3YUFdPCy84fWaml0H69w6x6brleEHBo2pcSJO9E4+ x7tUgxVef6MDheptkrnAUYq0xqU6sd4kWpkJQns2RTcojxLjkTeM5eXTDZh4RosrjS1p WY0OC6kV69tn1GeZmOdqRU31PWl7/CDeXNfd+LuKJng21bqVBeNv4+3lwWCee7zRmWcl 8XtQ== 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 p89si8160379edd.109.2020.11.09.12.28.32; Mon, 09 Nov 2020 12:28:56 -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 S1729831AbgKIU1I (ORCPT + 99 others); Mon, 9 Nov 2020 15:27:08 -0500 Received: from mx2.suse.de ([195.135.220.15]:54912 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726952AbgKIU1I (ORCPT ); Mon, 9 Nov 2020 15:27:08 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 066A4AB95; Mon, 9 Nov 2020 20:27:07 +0000 (UTC) Date: Mon, 9 Nov 2020 21:27:05 +0100 From: Michal =?iso-8859-1?Q?Such=E1nek?= To: "Darrick J. Wong" Cc: linux-xfs@vger.kernel.org, linux-ext4@vger.kernel.org, Theodore Ts'o , Andreas Dilger , Ira Weiny , Jan Kara , linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] xfs: show the dax option in mount options. Message-ID: <20201109202705.GZ29778@kitsune.suse.cz> References: <20201109192419.GC9695@magnolia> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201109192419.GC9695@magnolia> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 09, 2020 at 11:24:19AM -0800, Darrick J. Wong wrote: > On Mon, Nov 09, 2020 at 08:10:08PM +0100, Michal Suchanek wrote: > > xfs accepts both dax and dax_enum but shows only dax_enum. Show both > > options. > > > > Fixes: 8d6c3446ec23 ("fs/xfs: Make DAX mount option a tri-state") > > Signed-off-by: Michal Suchanek > > --- > > fs/xfs/xfs_super.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/fs/xfs/xfs_super.c b/fs/xfs/xfs_super.c > > index e3e229e52512..a3b00003840d 100644 > > --- a/fs/xfs/xfs_super.c > > +++ b/fs/xfs/xfs_super.c > > @@ -163,7 +163,7 @@ xfs_fs_show_options( > > { XFS_MOUNT_GRPID, ",grpid" }, > > { XFS_MOUNT_DISCARD, ",discard" }, > > { XFS_MOUNT_LARGEIO, ",largeio" }, > > - { XFS_MOUNT_DAX_ALWAYS, ",dax=always" }, > > + { XFS_MOUNT_DAX_ALWAYS, ",dax,dax=always" }, > > NAK, programs that require DAX semantics for files stored on XFS must > call statx to detect the STATX_ATTR_DAX flag, as outlined in "Enabling > DAX on xfs" in Documentation/filesystems/dax.txt. statx can be used to query S_DAX. NOTE that only regular files will ever have S_DAX set and therefore statx will never indicate that S_DAX is set on directories. The filesystem may not have any files so statx cannot be used. If you reject this method of detection please provide an actual usable alternative. Thanks Michal > > --D > > > { XFS_MOUNT_DAX_NEVER, ",dax=never" }, > > { 0, NULL } > > }; > > -- > > 2.26.2 > >