]> www.infradead.org Git - users/hch/xfs.git/commit
xfs: persist quota flags with metadir
authorDarrick J. Wong <djwong@kernel.org>
Mon, 23 Sep 2024 20:41:42 +0000 (13:41 -0700)
committerChristoph Hellwig <hch@lst.de>
Wed, 9 Oct 2024 13:55:43 +0000 (15:55 +0200)
commite288d89eafb1e863e309a73406e0ad5c6382a8cd
treeb3272fdcc151c5638ee857f2e5e6ba26989fed69
parent1b6c5617bc7dd79e197dbf9efce3d1c049ec4239
xfs: persist quota flags with metadir

It's annoying that one has to keep reminding XFS about what quota
options it should mount with, since the quota flags recording the
previous state are sitting right there in the primary superblock.  Even
more strangely, there exists a noquota option to disable quotas
completely, so it's odder still that providing no options is the same as
noquota.

Starting with metadir, let's change the behavior so that if the user
does not specify any quota-related mount options at all, the ondisk
quota flags will be used to bring up quota.  In other words, the
filesystem will mount in the same state and with the same functionality
as it had during the last mount.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/xfs_mount.c
fs/xfs/xfs_mount.h
fs/xfs/xfs_qm_bhv.c
fs/xfs/xfs_quota.h
fs/xfs/xfs_super.c