Skip to content

Commit

Permalink
rbd: do not run mkfs on a BlockMode volume
Browse files Browse the repository at this point in the history
Signed-off-by: Niels de Vos <ndevos@ibm.com>
  • Loading branch information
nixpanic committed Mar 6, 2023
1 parent 0fe0d09 commit d0c7849
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/rbd/nodeserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,7 @@ func (ns *NodeServer) mountVolumeToStagePath(
readOnly = true
}

if existingFormat == "" && !staticVol && !readOnly {
if existingFormat == "" && !staticVol && !readOnly && !isBlock {
args := mkfsDefaultArgs[fsType]

// if the VolumeContext contains "mkfsOptions", use those as args instead
Expand Down

0 comments on commit d0c7849

Please sign in to comment.