From d5278bd6c5c36564599b4ebe01274ecd8115bdba Mon Sep 17 00:00:00 2001 From: Madhu Rajanna Date: Wed, 11 Jan 2023 13:12:35 +0100 Subject: [PATCH] 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 --- internal/rbd/nodeserver.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/rbd/nodeserver.go b/internal/rbd/nodeserver.go index 4dfdf035b..b0cc5ecdc 100644 --- a/internal/rbd/nodeserver.go +++ b/internal/rbd/nodeserver.go @@ -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)