]> www.infradead.org Git - users/hch/xfs.git/commit
xfs: persist quota flags with metadir
authorDarrick J. Wong <djwong@kernel.org>
Tue, 15 Oct 2024 19:39:30 +0000 (12:39 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 5 Nov 2024 21:36:18 +0000 (13:36 -0800)
commit4f5570f96feacf22ddfffafa7048218296cad628
tree32418b703f63b6e7daf011a9b0ae84bbe1422cc0
parent379d13ee058835e72906d7c32e3add804de01087
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