mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-09 16:00:22 +00:00
rbd: do not run mkfs on a BlockMode volume
Signed-off-by: Niels de Vos <ndevos@ibm.com>
This commit is contained in:
parent
9c0fa09f19
commit
37c8f07ed5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user