mirror of
https://github.com/ipfs/kubo.git
synced 2025-09-09 17:22:21 +08:00
fuse unmount fixes
unmounting wasn't happening, mostly because of a recent bug in goprocess.SetTeardown. This commit bumps up some messages to log.Warnings, as users may want to see them, and makes sure to Unmount when a node shuts down. License: MIT Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
This commit is contained in:
@ -382,6 +382,13 @@ func (n *IpfsNode) teardown() error {
|
||||
n.Repo,
|
||||
}
|
||||
|
||||
if n.Mounts.Ipfs != nil {
|
||||
closers = append(closers, mount.Closer(n.Mounts.Ipfs))
|
||||
}
|
||||
if n.Mounts.Ipns != nil {
|
||||
closers = append(closers, mount.Closer(n.Mounts.Ipns))
|
||||
}
|
||||
|
||||
// Filesystem needs to be closed before network, dht, and blockservice
|
||||
// so it can use them as its shutting down
|
||||
if n.IpnsFs != nil {
|
||||
|
Reference in New Issue
Block a user