Skip to content

Commit

Permalink
Merge pull request #1523 from ConnorJC3/xfs-fix
Browse files Browse the repository at this point in the history
Add support for XFS custom block sizes
  • Loading branch information
k8s-ci-robot authored Mar 9, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents fff2a17 + caf56a2 commit 29a19d2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/driver/node.go
Original file line number Diff line number Diff line change
@@ -229,6 +229,9 @@ func (d *nodeService) NodeStageVolume(ctx context.Context, req *csi.NodeStageVol
klog.V(4).InfoS("NodeStageVolume: formatting and mounting with fstype", "source", source, "target", target, "fstype", fsType)
formatOptions := []string{}
if len(blockSize) > 0 {
if fsType == FSTypeXfs {
blockSize = "size=" + blockSize
}
formatOptions = append(formatOptions, "-b", blockSize)
}
err = d.mounter.FormatAndMountSensitiveWithFormatOptions(source, target, fsType, mountOptions, nil, formatOptions)

0 comments on commit 29a19d2

Please sign in to comment.