Skip to content

Commit da199a3

Browse files
fix(CSI-323): when snapshot of directory backed volumes is prohibited, incorrect error message is shown stating volume is legacy
1 parent 2c1555d commit da199a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: pkg/wekafs/volumeconstructors.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ func NewVolumeForCloneVolumeRequest(ctx context.Context, req *csi.CreateVolumeRe
279279
}
280280
if sourceVol.hasInnerPath() && !server.getConfig().allowSnapshotsOfLegacyVolumes {
281281
// block cloning of snapshots from legacy volumes, as it wastes space
282-
return nil, status.Errorf(codes.FailedPrecondition, "Cloning is not supported for Legacy CSI volumes")
282+
return nil, status.Errorf(codes.FailedPrecondition, "Cloning is prohibited for directory-backed volumes, refer to WEKA CSI Plugin documentation for additional information")
283283
}
284284

285285
// we assume the following when cloning a volume from existing volume:

0 commit comments

Comments
 (0)