Skip to content

Commit 93cdc96

Browse files
committed
fix mismatch gid on pod and volume
1 parent 2347cae commit 93cdc96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: pkg/blob/nodeserver.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ func (d *Driver) NodeStageVolume(ctx context.Context, req *csi.NodeStageVolumeRe
392392
if err != nil {
393393
return nil, status.Error(codes.InvalidArgument, fmt.Sprintf("convert %s to int failed with %v", volumeMountGroup, err))
394394
}
395-
if err := os.Chown((targetPath), -1, gid); err != nil {
395+
if err := os.Lchown((targetPath), -1, gid); err != nil {
396396
return nil, status.Error(codes.Internal, fmt.Sprintf("Failed to set GID of root directory %s to %d failed with %v", targetPath, gid, err))
397397
}
398398
}

0 commit comments

Comments
 (0)