mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
s/ffs/ntfs/
Fix error handling to not use VOP_CLOSE() on the disk. Spotted by: tegge
This commit is contained in:
parent
f9eeb89522
commit
c7aaa71ce3
1 changed files with 6 additions and 2 deletions
|
|
@ -286,7 +286,7 @@ ntfs_mountfs(devvp, mp, argsp, td)
|
|||
vn_lock(devvp, LK_EXCLUSIVE | LK_RETRY, td);
|
||||
DROP_GIANT();
|
||||
g_topology_lock();
|
||||
error = g_vfs_open(devvp, &cp, "ffs", ronly ? 0 : 1);
|
||||
error = g_vfs_open(devvp, &cp, "ntfs", ronly ? 0 : 1);
|
||||
g_topology_unlock();
|
||||
PICKUP_GIANT();
|
||||
VOP_UNLOCK(devvp, 0, td);
|
||||
|
|
@ -453,7 +453,11 @@ out:
|
|||
if (bp)
|
||||
brelse(bp);
|
||||
|
||||
(void)VOP_CLOSE(devvp, ronly ? FREAD : FREAD|FWRITE, NOCRED, td);
|
||||
DROP_GIANT();
|
||||
g_topology_lock();
|
||||
g_wither_geom_close(cp->geom, ENXIO);
|
||||
g_topology_unlock();
|
||||
PICKUP_GIANT();
|
||||
|
||||
return (error);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue