Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(CSI-289): add default nfs option for rdirplus #368

Merged
merged 1 commit into from
Oct 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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