Re: [PATCH] xfs: don't drop inode32 on a remount without inode32 or inode64
From: Yifan Feng
Date: Wed Dec 02 2026 - 16:08:23 EST
On Mon, 30 Nov 2026 05:45:33 -0800 Christoph Hellwig <hch@xxxxxxxxxxxxx> wrote:
> Looks good:
>
> Reviewed-by: Christoph Hellwig <hch@xxxxxx>
Thanks.
> Can you add an xfstests test for this?
Yes, I will send one to the fstests list.
> I also wonder if we might have similar issues for other mount options.
> Do you have spare cycles to look over that?
I looked. xfs_fs_reconfigure() takes three things from the options of
the remount: ro/rw, inode32/inode64 and max_atomic_write. The rest is
only validated. max_atomic_write has the same problem:
# mount -o max_atomic_write=64k /dev/vda /mnt
# findmnt -no OPTIONS /mnt
rw,relatime,inode64,logbufs=8,logbsize=32k,noquota,max_atomic_write=64k
# mount -o remount,noatime /dev/vda /mnt
# findmnt -no OPTIONS /mnt
rw,noatime,inode64,logbufs=8,logbsize=32k,noquota
I will send a patch for it on top of this one.
Thanks,
Yifan