diff --git a/pkg/cephfs/volume.go b/pkg/cephfs/volume.go index 1380d778fd9..a4d6f197d68 100644 --- a/pkg/cephfs/volume.go +++ b/pkg/cephfs/volume.go @@ -30,12 +30,8 @@ const ( namespacePrefix = "ns-" ) -var ( - cephRootPrefix = "/controller/volumes/root-" -) - func getCephRootPathLocal(volID volumeID) string { - return PluginFolder + cephRootPrefix + string(volID) + return fmt.Sprintf("%s/controller/volumes/root-%s", PluginFolder, string(volID)) } func getCephRootVolumePathLocal(volID volumeID) string {