Don't restore MNT_QUOTA bit in mnt_flag after snapshot creation,

closing a race between nmount() and quotactl().
This commit is contained in:
Tor Egge 2006-09-26 04:19:11 +00:00
parent fba924ce9b
commit 9b65c22cf4

View File

@ -832,7 +832,7 @@ out:
}
UFS_UNLOCK(ump);
MNT_ILOCK(mp);
mp->mnt_flag = flag;
mp->mnt_flag = (mp->mnt_flag & MNT_QUOTA) | (flag & ~MNT_QUOTA);
MNT_IUNLOCK(mp);
if (error)
(void) ffs_truncate(vp, (off_t)0, 0, NOCRED, td);