Skip to content

Commit 5bc0b52

Browse files
committed
use different tmp-path for different blobfuse mount
1 parent 2f8199d commit 5bc0b52

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)