start weed mount without blocking
This commit is contained in:
parent
9155a07345
commit
7cb22dfa36
@ -22,7 +22,7 @@ const (
|
|||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
version = "1.0.0-rc1"
|
version = "1.0.0"
|
||||||
)
|
)
|
||||||
|
|
||||||
type SeaweedFsDriver struct {
|
type SeaweedFsDriver struct {
|
||||||
|
|||||||
@ -27,8 +27,9 @@ func fuseMount(path string, command string, args []string) error {
|
|||||||
cmd := exec.Command(command, args...)
|
cmd := exec.Command(command, args...)
|
||||||
glog.V(0).Infof("Mounting fuse with command: %s and args: %s", 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 {
|
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)
|
return fmt.Errorf("Error fuseMount command: %s\nargs: %s\noutput: %s\nerror: %v", command, args, out, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user