Disable the soft updates journaling after a filesystem is successfully
downgraded to read-only. It will be restarted if the filesystem is upgraded back to read-write.
This commit is contained in:
parent
bd5abe1968
commit
9420dc62cd
@ -2386,8 +2386,15 @@ softdep_unmount(mp)
|
||||
struct mount *mp;
|
||||
{
|
||||
|
||||
if (mp->mnt_kern_flag & MNTK_SUJ)
|
||||
journal_unmount(mp);
|
||||
MNT_ILOCK(mp);
|
||||
mp->mnt_flag &= ~MNT_SOFTDEP;
|
||||
if ((mp->mnt_kern_flag & MNTK_SUJ) == 0) {
|
||||
MNT_IUNLOCK(mp);
|
||||
return;
|
||||
}
|
||||
mp->mnt_kern_flag &= ~MNTK_SUJ;
|
||||
MNT_IUNLOCK(mp);
|
||||
journal_unmount(mp);
|
||||
}
|
||||
|
||||
struct jblocks {
|
||||
|
@ -269,6 +269,8 @@ ffs_mount(struct mount *mp)
|
||||
vfs_write_resume(mp);
|
||||
return (error);
|
||||
}
|
||||
if (mp->mnt_flag & MNT_SOFTDEP)
|
||||
softdep_unmount(mp);
|
||||
DROP_GIANT();
|
||||
g_topology_lock();
|
||||
g_access(ump->um_cp, 0, -1, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user