mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
opensolaris compat: clear VI_MOUNT before returning if mount_snapshot fails
To do: investigate if it would be possible to use normal vfs_domount here. Reviewed by: kib MFC after: 19 days
This commit is contained in:
parent
71900cfaf7
commit
f8abf4a1e4
1 changed files with 3 additions and 0 deletions
|
|
@ -191,6 +191,9 @@ mount_snapshot(kthread_t *td, vnode_t **vpp, const char *fstype, char *fspath,
|
|||
td->td_ucred = cr;
|
||||
|
||||
if (error != 0) {
|
||||
VI_LOCK(vp);
|
||||
vp->v_iflag &= ~VI_MOUNT;
|
||||
VI_UNLOCK(vp);
|
||||
vrele(vp);
|
||||
vfs_unbusy(mp);
|
||||
vfs_mount_destroy(mp);
|
||||
|
|
|
|||
Loading…
Reference in a new issue