mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-09 16:00:22 +00:00
rbd: set disableInUseChecks on rbd volume
set disableInUseChecks on rbd volume struct as it will be used later to check whether the rbd image is allowed to mount on multiple nodes. fixes: #3604 Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
parent
c1a636b431
commit
d5278bd6c5
@ -200,6 +200,8 @@ func populateRbdVol(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
rv.DisableInUseChecks = disableInUseChecks
|
||||||
|
|
||||||
err = rv.Connect(cr)
|
err = rv.Connect(cr)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.ErrorLog(ctx, "failed to connect to volume %s: %v", rv, err)
|
log.ErrorLog(ctx, "failed to connect to volume %s: %v", rv, err)
|
||||||
|
Loading…
Reference in New Issue
Block a user