From: Christoph Hellwig <hch@infradead.org>
To: Yifan Feng <evanfengff@gmail.com>
Cc: Carlos Maiolino <cem@kernel.org>, Ian Kent <raven@themaw.net>,
Christian Brauner <brauner@kernel.org>,
linux-xfs@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] xfs: don't drop inode32 on a remount without inode32 or inode64
Date: Mon, 30 Nov 2026 05:45:33 -0800 [thread overview]
Message-ID: <aw19_egsgjLuYM1Y@infradead.org> (raw)
In-Reply-To: <20261130001917.56901-1-evanfengff@gmail.com>
On Sun, Nov 29, 2026 at 04:19:17PM -0800, Yifan Feng wrote:
> xfs_fs_reconfigure() compares the mounted state with the options of
> the remount, and those start out as inode64. So a remount that names
> neither inode32 nor inode64 switches an inode32 mount to inode64, and
> new inodes get numbers above 32 bits:
>
> # mount -o inode32 /dev/vda /mnt
> # mount -o remount,noatime /dev/vda /mnt
> # grep /mnt /proc/mounts
> /dev/vda /mnt xfs rw,noatime,inode64,logbufs=8,logbsize=32k,noquota 0 0
>
> mount(8) hides this when it is given the mount point only, because it
> then passes the current options again. Before the conversion to the
> mount API the setting changed only when one of the two options was
> given.
>
> Start the options of a remount from the setting in use.
Looks good:
Reviewed-by: Christoph Hellwig <hch@lst.de>
Can you add an xfstests test for this?
I also wonder if we might have similar issues for other mount options.
Do you have spare cycles to look over that?
prev parent reply other threads:[~2026-11-30 13:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 0:19 Yifan Feng
2026-11-30 13:45 ` Christoph Hellwig [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aw19_egsgjLuYM1Y@infradead.org \
--to=hch@infradead.org \
--cc=brauner@kernel.org \
--cc=cem@kernel.org \
--cc=evanfengff@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-xfs@vger.kernel.org \
--cc=raven@themaw.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®