Don't restore MNT_QUOTA bit in mnt_flag after snapshot creation,
closing a race between nmount() and quotactl().
This commit is contained in:
parent
fba924ce9b
commit
9b65c22cf4
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user