mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 10:33:35 +00:00
rbd: check nbd tool features only for rbd driver
calling setRbdNbdToolFeatures inside an init gets called in main.go for both cephfs and rbd driver. instead of calling it in init function calling this in rbd driver.go as this is specific to rbd. Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
committed by
mergify[bot]
parent
539050a857
commit
dffb6e72c2
@ -153,6 +153,8 @@ func (r *Driver) Run(conf *util.Config) {
|
||||
log.FatalLogMsg(err.Error())
|
||||
}
|
||||
rbd.SetGlobalInt("krbdFeatures", krbdFeatures)
|
||||
|
||||
rbd.SetRbdNbdToolFeatures()
|
||||
}
|
||||
|
||||
if conf.IsControllerServer {
|
||||
|
Reference in New Issue
Block a user