Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
HardenedBSD
HardenedBSD
Commits
1b957df8
Commit
1b957df8
authored
Mar 03, 2021
by
Konstantin Belousov
Browse files
ffs_mount: when remounting ro->rw and sbupdate failed, cleanup softdeps
(cherry picked from commit
f776c54c
)
parent
f59d0c7c
Changes
1
Hide whitespace changes
Inline
Side-by-side
sys/ufs/ffs/ffs_vfsops.c
View file @
1b957df8
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment