ctlsock: exit if socket cannot be created
This commit is contained in:
parent
3e59041147
commit
21904cd5f0
8
mount.go
8
mount.go
@ -178,7 +178,13 @@ func initFuseFrontend(key []byte, args *argContainer, confFile *configfile.ConfF
|
|||||||
ctlSockBackend = fs
|
ctlSockBackend = fs
|
||||||
}
|
}
|
||||||
if args.ctlsock != "" {
|
if args.ctlsock != "" {
|
||||||
ctlsock.CreateAndServe(args.ctlsock, ctlSockBackend)
|
err := ctlsock.CreateAndServe(args.ctlsock, ctlSockBackend)
|
||||||
|
if err != nil {
|
||||||
|
// TODO if the socket cannot be created, we should exit BEFORE
|
||||||
|
// asking the user for the password
|
||||||
|
tlog.Fatal.Printf("ctlsock: %v", err)
|
||||||
|
os.Exit(ErrExitMount)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
pathFsOpts := &pathfs.PathNodeFsOptions{ClientInodes: true}
|
pathFsOpts := &pathfs.PathNodeFsOptions{ClientInodes: true}
|
||||||
pathFs := pathfs.NewPathNodeFs(finalFs, pathFsOpts)
|
pathFs := pathfs.NewPathNodeFs(finalFs, pathFsOpts)
|
||||||
|
Loading…
Reference in New Issue
Block a user