From 33f0675cc0042e067cf15e490d27255952b8d127 Mon Sep 17 00:00:00 2001
From: Vitaliy Filippov <vitalif@yourcmc.ru>
Date: Tue, 7 Sep 2021 14:55:12 +0300
Subject: [PATCH] Pass stderr through to not wait for it

---
 pkg/driver/nodeserver.go | 2 +-
 pkg/mounter/mounter.go   | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/pkg/driver/nodeserver.go b/pkg/driver/nodeserver.go
index 6c21544..2b8e281 100644
--- a/pkg/driver/nodeserver.go
+++ b/pkg/driver/nodeserver.go
@@ -114,7 +114,7 @@ func (ns *nodeServer) NodePublishVolume(ctx context.Context, req *csi.NodePublis
 		return nil, err
 	}
 
-	glog.V(4).Infof("s3: volume %s successfuly mounted to %s", volumeID, targetPath)
+	glog.V(4).Infof("s3: volume %s successfully mounted to %s", volumeID, targetPath)
 
 	return &csi.NodePublishVolumeResponse{}, nil
 }
diff --git a/pkg/mounter/mounter.go b/pkg/mounter/mounter.go
index e36facb..1e79421 100644
--- a/pkg/mounter/mounter.go
+++ b/pkg/mounter/mounter.go
@@ -59,9 +59,10 @@ func New(meta *s3.FSMeta, cfg *s3.Config) (Mounter, error) {
 
 func fuseMount(path string, command string, args []string) error {
 	cmd := exec.Command(command, args...)
+	cmd.Stderr = os.Stderr
 	glog.V(3).Infof("Mounting fuse with command: %s and args: %s", command, args)
 
-	out, err := cmd.CombinedOutput()
+	out, err := cmd.Output()
 	if err != nil {
 		return fmt.Errorf("Error fuseMount command: %s\nargs: %s\noutput: %s", command, args, out)
 	}