start weed mount without blocking

This commit is contained in:
Chris Lu 2020-09-04 01:34:51 -07:00
parent 9155a07345
commit 7cb22dfa36
2 changed files with 3 additions and 2 deletions

View File

@ -22,7 +22,7 @@ const (
)
var (
version = "1.0.0-rc1"
version = "1.0.0"
)
type SeaweedFsDriver struct {

View File

@ -27,8 +27,9 @@ func fuseMount(path string, command string, args []string) error {
cmd := exec.Command(command, args...)
glog.V(0).Infof("Mounting fuse with command: %s and args: %s", command, args)
out, err := cmd.CombinedOutput()
err := cmd.Start()
if err != nil {
glog.Errorf("running weed mount: %v", err)
return fmt.Errorf("Error fuseMount command: %s\nargs: %s\noutput: %s\nerror: %v", command, args, out, err)
}