Skip to content

Commit bb1e32c

Browse files
authored
Merge pull request #21 from csi-driver/set-diferent-tmp-path
use different tmp-path value for different blobfuse mounts
2 parents a005ac7 + 5bc0b52 commit bb1e32c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/blobfuse/nodeserver.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ func (d *Driver) NodePublishVolume(ctx context.Context, req *csi.NodePublishVolu
114114
}
115115
}
116116

117-
// todo: use could set tmp-path and other mountOptions
118-
cmd := exec.Command("/usr/blob/blobfuse", targetPath, "--tmp-path=/mnt/blobfuse/", "--container-name="+containerName)
117+
// todo: user could set tmp-path and other mountOptions
118+
cmd := exec.Command("/usr/blob/blobfuse", targetPath, "--tmp-path=/mnt/"+volumeID, "--container-name="+containerName)
119119
cmd.Env = append(os.Environ(), "AZURE_STORAGE_ACCOUNT="+accountName, "AZURE_STORAGE_ACCESS_KEY="+accountKey)
120120
err = cmd.Run()
121121
if err != nil {

0 commit comments

Comments
 (0)