Skip to content

Commit

Permalink
Merge pull request ceph#121 from rootfs/dev
Browse files Browse the repository at this point in the history
fix cache persistent default for cephfs
  • Loading branch information
gman0 authored Jan 9, 2019
2 parents 6329e98 + e551ad1 commit ab8b47d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion cephfs/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ var (
driverName = flag.String("drivername", "csi-cephfsplugin", "name of the driver")
nodeId = flag.String("nodeid", "", "node id")
volumeMounter = flag.String("volumemounter", "", "default volume mounter (possible options are 'kernel', 'fuse')")
metadataStorage = flag.String("metadatastorage", "", "metadata persistence method [node|k8s_configmap]")
metadataStorage = flag.String("metadatastorage", "node", "metadata persistence method [node|k8s_configmap]")
)

func main() {
Expand Down
4 changes: 0 additions & 4 deletions rbd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@ func main() {
os.Exit(1)
}

if *metadataStorage != "node" && *metadataStorage != "k8s_configmap" {
glog.Errorf("invalid cache persistent option: %s", *metadataStorage)
os.Exit(1)
}
cp, err := util.NewCachePersister(*metadataStorage, *driverName)
if err != nil {
glog.Errorf("failed to define cache persistence method: %v", err)
Expand Down

0 comments on commit ab8b47d

Please sign in to comment.