xfs: prevent rt growfs when quota is enabled
authorDarrick J. Wong <djwong@kernel.org>
Mon, 16 Oct 2023 16:21:05 +0000 (09:21 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 17 Oct 2023 23:22:40 +0000 (16:22 -0700)
commitb73494fa9a304ab95b59f07845e8d7d36e4d23e0
treee5a37b7c4686ca202f16f17cbcffd017e2a67fee
parent6c664484337b37fa0cf6e958f4019623e30d40f7
xfs: prevent rt growfs when quota is enabled

Quotas aren't (yet) supported with realtime, so we shouldn't allow
userspace to set up a realtime section when quotas are enabled, even if
they attached one via mount options.  IOWS, you shouldn't be able to do:

# mkfs.xfs -f /dev/sda
# mount /dev/sda /mnt -o rtdev=/dev/sdb,usrquota
# xfs_growfs -r /mnt

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