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:
Madhu Rajanna 2023-01-11 13:12:35 +01:00 committed by mergify[bot]
parent c1a636b431
commit d5278bd6c5

View File

@ -200,6 +200,8 @@ func populateRbdVol(
}
}
rv.DisableInUseChecks = disableInUseChecks
err = rv.Connect(cr)
if err != nil {
log.ErrorLog(ctx, "failed to connect to volume %s: %v", rv, err)