diff options
author | Kirk McKusick <mckusick@FreeBSD.org> | 2021-04-14 22:22:12 +0000 |
---|---|---|
committer | Kirk McKusick <mckusick@FreeBSD.org> | 2021-04-18 17:08:49 +0000 |
commit | 44f01dbeda6705602416cbd963a992360c1f1524 (patch) | |
tree | 54161574d7369464cf494f51f94503ee1cf4e695 | |
parent | daf3f4596a553a3379c2feb0422924407f6f39df (diff) | |
download | src-44f01dbeda6705602416cbd963a992360c1f1524.tar.gz src-44f01dbeda6705602416cbd963a992360c1f1524.zip |
Ensure that the mount command shows "with quotas" when quotas are enabled.
(cherry picked from commit 14d0cd7225e250015eb6d9c79a7eb4e944211b23)
-rw-r--r-- | sys/ufs/ufs/ufs_quota.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/ufs/ufs/ufs_quota.c b/sys/ufs/ufs/ufs_quota.c index 47c8133adc11..4dff74f75945 100644 --- a/sys/ufs/ufs/ufs_quota.c +++ b/sys/ufs/ufs/ufs_quota.c @@ -562,6 +562,7 @@ quotaon(struct thread *td, struct mount *mp, int type, void *fname) VOP_UNLOCK(vp); MNT_ILOCK(mp); mp->mnt_flag |= MNT_QUOTA; + mp->mnt_stat.f_flags |= MNT_QUOTA; MNT_IUNLOCK(mp); vpp = &ump->um_quotas[type]; @@ -764,6 +765,7 @@ quotaoff_inchange(struct thread *td, struct mount *mp, int type) if (i == MAXQUOTAS) { MNT_ILOCK(mp); mp->mnt_flag &= ~MNT_QUOTA; + mp->mnt_stat.f_flags &= ~MNT_QUOTA; MNT_IUNLOCK(mp); } UFS_UNLOCK(ump); |