aboutsummaryrefslogtreecommitdiff
path: root/pkg/driver/mounter.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-09-04 01:34:51 -0700
committerChris Lu <chris.lu@gmail.com>2020-09-04 01:34:51 -0700
commit7cb22dfa36cedc7ed868503d6caa3efa9f7cfa16 (patch)
tree78c620bbcb4159eb309150b4a1662483d951ac03 /pkg/driver/mounter.go
parent9155a07345eb3bc1fc7c5e288640c085c3256200 (diff)
downloadseaweedfs-csi-driver-7cb22dfa36cedc7ed868503d6caa3efa9f7cfa16.tar.xz
seaweedfs-csi-driver-7cb22dfa36cedc7ed868503d6caa3efa9f7cfa16.zip
start weed mount without blocking
Diffstat (limited to 'pkg/driver/mounter.go')
-rw-r--r--pkg/driver/mounter.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/driver/mounter.go b/pkg/driver/mounter.go
index 3906232..44ff6af 100644
--- a/pkg/driver/mounter.go
+++ b/pkg/driver/mounter.go
@@ -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)
}