Skip to content

Commit

Permalink
added mountoption nouuid for xfs fstype
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffrey1330 committed Oct 17, 2024
1 parent b1c907e commit f344fa4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkg/spdk/nodeserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ import (
"errors"
"fmt"
"os"
osExec "os/exec"
"strconv"

// osExec "os/exec"
// "strconv"

Check failure on line 26 in pkg/spdk/nodeserver.go

View workflow job for this annotation

GitHub Actions / Analyze (go)

commentedOutImport: remove commented-out "strconv" import (gocritic)
"time"

"github.com/container-storage-interface/spec/lib/go/csi"
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit f344fa4

Please sign in to comment.