Commit 1b957df8 authored by Konstantin Belousov's avatar Konstantin Belousov
Browse files

ffs_mount: when remounting ro->rw and sbupdate failed, cleanup softdeps

(cherry picked from commit f776c54c)
parent f59d0c7c
......@@ -645,6 +645,8 @@ ffs_mount(struct mount *mp)
fs->fs_clean = 0;
if ((error = ffs_sbupdate(ump, MNT_WAIT, 0)) != 0) {
fs->fs_ronly = 1;
if ((fs->fs_flags & FS_DOSOFTDEP) != 0)
softdep_unmount(mp);
MNT_ILOCK(mp);
mp->mnt_flag |= saved_mnt_flag;
MNT_IUNLOCK(mp);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment