Skip to content

Commit

Permalink
rbd: set disableInUseChecks on rbd volume
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Madhu-1 authored and mergify[bot] committed Jan 11, 2023
1 parent c1a636b commit d5278bd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/rbd/nodeserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d5278bd

Please sign in to comment.