Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp596686ybt; Wed, 17 Jun 2020 09:01:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxEpEe23G2x6xHZCl3JHNtiHKXi0iot1f5oqDUG5AtibyE/9yide+o5k2QxkKLqRppOz4IH X-Received: by 2002:a05:6402:17e6:: with SMTP id t6mr7580466edy.243.1592409705838; Wed, 17 Jun 2020 09:01:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592409705; cv=none; d=google.com; s=arc-20160816; b=sFkkTfZsips1JMFvD1Jf1SBr4/jGF/vp6n8gs4ILyvRyGB9kmaK3UGHyB4hxnMVwHi fH33fQv0LWm5cCIg/3nh2sxqnXjYgP8VHscoqwefP9FP0c27SyMam0rdMp+ooCktwqqF X4FTI/OcybmftgDZm1Tq5mRwfC8eNNSw73viMVXe2AMkQRxlGY/35SvKev7Dbv07lQqa QOmtKCFvplLdEyIiODTRtZKausc+WWG4oOQRUVvFnxDuXvW3UrkQwhKJP29IXcicyfxc waWVXFDWOCim4s1X3ME777hL1Bz5Soe5dbm7FmdV0ED3mw3iNEPIWVSaxLeA20Nb7JFq lP8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:from:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:date:dkim-signature:dkim-filter; bh=qjrP9toWLVUQfIxqLnuogJfwKThqElLy0VbPctF2g9Q=; b=VN6dwRTk2gaNufiHb8YzdGnBh4tZflw4XRrOXfANX/5oKFBbHrrxPDCwwFINONFp7L 8pJ+SUalTltTRQAvcvDcMic0zM8bqzSWaAinESXwnD2y+PvZccvYsowcgTQCV1ShTFfy h9GWTW8s/1/ItEHWRMSBQLY4xIndQj3YZ0/Coj1zfK6cQ1or2SOO8Fz6+PwHYGnEefY5 9IvIJfY8XfEKosVC33KXH2/zzcLqLWxf80cEJjk40fnWLiT2QRU/ge5mdE3mWVQvTKjV C8xkq2Oa8jJv0rU1uCLp6bIamIcMcl9w/oahd8BTHYGlqnEqkrdXGVwzgA8rg+fzc7xh l6Pg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=SR1bZ108; 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 w6si130210ejn.265.2020.06.17.09.01.07; Wed, 17 Jun 2020 09:01:45 -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; dkim=pass header.i=@fieldses.org header.s=default header.b=SR1bZ108; 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 S1726496AbgFQP6g (ORCPT + 99 others); Wed, 17 Jun 2020 11:58:36 -0400 Received: from fieldses.org ([173.255.197.46]:44248 "EHLO fieldses.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726341AbgFQP6g (ORCPT ); Wed, 17 Jun 2020 11:58:36 -0400 Received: by fieldses.org (Postfix, from userid 2815) id 18455C5E; Wed, 17 Jun 2020 11:58:36 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.11.0 fieldses.org 18455C5E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fieldses.org; s=default; t=1592409516; bh=qjrP9toWLVUQfIxqLnuogJfwKThqElLy0VbPctF2g9Q=; h=Date:To:Cc:Subject:References:In-Reply-To:From:From; b=SR1bZ108Nc66+qyxzfC/2i4yCutwv45fJBmN6WKaZfy/0XsvNtEplh5Djr8IoIBf9 uJqqvrE8uabyX/2Faj5IH/Zlqgj56mNkIeHedGMI8YbaJH8/31g2tC9ACjdY84RhCd YnPDMKBV3NtijXuhF/sDt4z8wIG60uSPZaq4pqPA= Date: Wed, 17 Jun 2020 11:58:36 -0400 To: Christoph Hellwig Cc: Masayoshi Mizuma , Theodore Ts'o , Andreas Dilger , Alexander Viro , Masayoshi Mizuma , linux-ext4@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH] fs: i_version mntopt gets visible through /proc/mounts Message-ID: <20200617155836.GD13815@fieldses.org> References: <20200616202123.12656-1-msys.mizuma@gmail.com> <20200617080314.GA7147@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200617080314.GA7147@infradead.org> User-Agent: Mutt/1.5.21 (2010-09-15) From: bfields@fieldses.org (J. Bruce Fields) Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Wed, Jun 17, 2020 at 01:03:14AM -0700, Christoph Hellwig wrote: > On Tue, Jun 16, 2020 at 04:21:23PM -0400, Masayoshi Mizuma wrote: > > From: Masayoshi Mizuma > > > > /proc/mounts doesn't show 'i_version' even if iversion > > mount option is set to XFS. > > > > iversion mount option is a VFS option, not ext4 specific option. > > Move the handler to show_sb_opts() so that /proc/mounts can show > > 'i_version' on not only ext4 but also the other filesystem. > > SB_I_VERSION is a kernel internal flag. XFS doesn't have an i_version > mount option. It probably *should* be a kernel internal flag, but it seems to work as a mount option too. By coincidence I've just been looking at a bug report showing that i_version support is getting accidentally turned off on XFS whenever userspace does a read-write remount. Is there someplace in the xfs mount code where it should be throwing out SB_I_VERSION? Ideally there'd be entirely different fields for mount options and internal feature flags. But I don't know, maybe SB_I_VERSION is the only flag we have like this. --b.