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 7, 2023
1 parent f706a7e commit fc5a88a
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 @@ -781,7 +781,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 fc5a88a

Please sign in to comment.