From f344fa4bf46263b93408f12c23202a06404f0f10 Mon Sep 17 00:00:00 2001 From: geoffrey1330 Date: Thu, 17 Oct 2024 09:27:33 +0100 Subject: [PATCH] added mountoption nouuid for xfs fstype --- pkg/spdk/nodeserver.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkg/spdk/nodeserver.go b/pkg/spdk/nodeserver.go index 22833c7..0466110 100644 --- a/pkg/spdk/nodeserver.go +++ b/pkg/spdk/nodeserver.go @@ -21,8 +21,9 @@ import ( "errors" "fmt" "os" - osExec "os/exec" - "strconv" + + // osExec "os/exec" + // "strconv" "time" "github.com/container-storage-interface/spec/lib/go/csi" @@ -317,7 +318,7 @@ func (ns *nodeServer) stageVolume(devicePath, stagingPath string, req *csi.NodeS // if fsType is not specified, use ext4 as default if fsType == "" { fsType = "ext4" - } + } // else if fsType == "xfs" { // distrNdcs, errNdcs := strconv.Atoi(volumeContext["distr_ndcs"]) // if errNdcs != nil {