mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-16 12:14:06 +00:00
xfs: prevent rt growfs when quota is enabled
commit b73494fa9a304ab95b59f07845e8d7d36e4d23e0 upstream. 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> Signed-off-by: Catherine Hoang <catherine.hoang@oracle.com> Acked-by: Chandan Babu R <chandanbabu@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
e820b13ba8
commit
6a6bb41b31
1 changed files with 1 additions and 1 deletions
|
@ -954,7 +954,7 @@ xfs_growfs_rt(
|
|||
return -EINVAL;
|
||||
|
||||
/* Unsupported realtime features. */
|
||||
if (xfs_has_rmapbt(mp) || xfs_has_reflink(mp))
|
||||
if (xfs_has_rmapbt(mp) || xfs_has_reflink(mp) || xfs_has_quota(mp))
|
||||
return -EOPNOTSUPP;
|
||||
|
||||
nrblocks = in->newblocks;
|
||||
|
|
Loading…
Add table
Reference in a new issue