From 8753aa9da5f272e0fcc05b61e50f22f08cc4d692 Mon Sep 17 00:00:00 2001 From: happytreees Date: Mon, 13 May 2024 14:21:39 -0400 Subject: [PATCH] add options back --- driver/node.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/driver/node.go b/driver/node.go index 270badb..6b4636a 100644 --- a/driver/node.go +++ b/driver/node.go @@ -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 != "" { @@ -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()) }