mountlib: fix VFS instance leaks on mount failures and unmounts
This commit is contained in:
committed by
Nick Craig-Wood
parent
f425f8d466
commit
45ddf3a5f2
@@ -241,8 +241,6 @@ func mount(VFS *vfs.VFS, mountpoint string, opt *mountlib.Options) (<-chan error
|
||||
// }
|
||||
|
||||
umount := func() error {
|
||||
// Shutdown the VFS
|
||||
fsys.VFS.Shutdown()
|
||||
return server.Unmount()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user