From 295202b98ea3ae096e1522ee7dcc28cb09842904 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=80=80=E5=AE=97?= Date: Wed, 27 Mar 2019 13:08:42 +0800 Subject: [PATCH] issue #285 fix unexpect getCephRootPathLocal value PluginFolder update at main.go, so cephRootPrefix may get unexpected value --- pkg/cephfs/volume.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/cephfs/volume.go b/pkg/cephfs/volume.go index c8a77f335..1380d778f 100644 --- a/pkg/cephfs/volume.go +++ b/pkg/cephfs/volume.go @@ -31,11 +31,11 @@ const ( ) var ( - cephRootPrefix = PluginFolder + "/controller/volumes/root-" + cephRootPrefix = "/controller/volumes/root-" ) func getCephRootPathLocal(volID volumeID) string { - return cephRootPrefix + string(volID) + return PluginFolder + cephRootPrefix + string(volID) } func getCephRootVolumePathLocal(volID volumeID) string {