Skip to content

Commit

Permalink
add options back
Browse files Browse the repository at this point in the history
  • Loading branch information
happytreees committed May 13, 2024
1 parent 41e80b1 commit 8753aa9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions driver/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func (n *VultrNodeServer) NodeStageVolume(ctx context.Context, req *csi.NodeStag
source := getDeviceByPath(volumeID)
target := req.StagingTargetPath
mountBlk := req.VolumeCapability.GetMount()
// options := mountBlk.MountFlags
options := mountBlk.MountFlags

fsType := "ext4"
if mountBlk.FsType != "" {
Expand Down Expand Up @@ -97,7 +97,7 @@ func (n *VultrNodeServer) NodeStageVolume(ctx context.Context, req *csi.NodeStag
"capacity": req.VolumeCapability,
}).Info("Node Stage Volume: attempting format and mount")

if err := n.Driver.mounter.FormatAndMount(source, target, fsType, nil); err != nil {
if err := n.Driver.mounter.FormatAndMount(source, target, fsType, options); err != nil {
return nil, status.Error(codes.Internal, err.Error())
}

Expand Down

0 comments on commit 8753aa9

Please sign in to comment.