]> www.infradead.org Git - users/dwmw2/linux.git/commit
xfs: persist quota flags with metadir
authorDarrick J. Wong <djwong@kernel.org>
Mon, 4 Nov 2024 04:19:39 +0000 (20:19 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 5 Nov 2024 21:38:45 +0000 (13:38 -0800)
commitd5d9dd5b3026a8bf58f21228b47df9e9942a9c42
tree32418b703f63b6e7daf011a9b0ae84bbe1422cc0
parent128a055291ebbc156e219b83d03dc5e63e71d7ce
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