Skip to content

Commit

Permalink
feat(CSI-289): add default nfs option for rdirplus (#368)
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeyberezansky authored Oct 14, 2024
2 parents 5e13bfa + 29f5f0e commit 35c0016
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions pkg/wekafs/mountoptions.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ const (
MountOptionCoherent = "coherent"
MountOptionNfsAsync = "async"
MountOptionNfsHard = "hard"
MountOptionNfsRdirPlus = "rdirplus"
MountOptionReadCache = "readcache"
MountProtocolWekafs = "wekafs"
MountProtocolNfs = "nfs"
DefaultNfsMountOptions = MountOptionNfsHard + "," + MountOptionNfsAsync
DefaultNfsMountOptions = MountOptionNfsHard + "," + MountOptionNfsAsync + "," + MountOptionNfsRdirPlus
)

type mountOption struct {
Expand Down Expand Up @@ -204,14 +205,6 @@ func (opts MountOptions) AsNfs() MountOptions {
case "dentry_max_age_positive":
ret.AddOption(fmt.Sprintf("acdirmax=%s", o.value))
ret.AddOption(fmt.Sprintf("acregmax=%s", o.value))
case "inode_bits":
continue
case "verbose":
continue
case "quiet":
continue
case "obs_direct":
continue
default:
continue
}
Expand Down

0 comments on commit 35c0016

Please sign in to comment.