Skip to content

Commit

Permalink
feat: negotiate smb version
Browse files Browse the repository at this point in the history
  • Loading branch information
andyzhangx committed Apr 28, 2021
1 parent d9e5643 commit 6d54649
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
2 changes: 0 additions & 2 deletions pkg/azurefile/azurefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ const (
mfsymlinks = "mfsymlinks"
defaultFileMode = "0777"
defaultDirMode = "0777"
defaultVers = "3.0"
defaultActimeo = "30"

// See https://docs.microsoft.com/en-us/rest/api/storageservices/naming-and-referencing-shares--directories--files--and-metadata#share-names
Expand Down Expand Up @@ -302,7 +301,6 @@ func appendDefaultMountOptions(mountOptions []string) []string {
var defaultMountOptions = map[string]string{
fileMode: defaultFileMode,
dirMode: defaultDirMode,
vers: defaultVers,
actimeo: defaultActimeo,
mfsymlinks: "",
}
Expand Down
6 changes: 0 additions & 6 deletions pkg/azurefile/azurefile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ func TestAppendDefaultMountOptions(t *testing.T) {
options: []string{"dir_mode=0777"},
expected: []string{"dir_mode=0777",
fmt.Sprintf("%s=%s", fileMode, defaultFileMode),
fmt.Sprintf("%s=%s", vers, defaultVers),
fmt.Sprintf("%s=%s", actimeo, defaultActimeo),
mfsymlinks,
},
Expand All @@ -79,7 +78,6 @@ func TestAppendDefaultMountOptions(t *testing.T) {
options: []string{"file_mode=0777"},
expected: []string{"file_mode=0777",
fmt.Sprintf("%s=%s", dirMode, defaultDirMode),
fmt.Sprintf("%s=%s", vers, defaultVers),
fmt.Sprintf("%s=%s", actimeo, defaultActimeo),
mfsymlinks,
},
Expand All @@ -97,7 +95,6 @@ func TestAppendDefaultMountOptions(t *testing.T) {
options: []string{"file_mode=0777", "dir_mode=0777"},
expected: []string{
"file_mode=0777", "dir_mode=0777",
fmt.Sprintf("%s=%s", vers, defaultVers),
fmt.Sprintf("%s=%s", actimeo, defaultActimeo),
mfsymlinks,
},
Expand All @@ -108,7 +105,6 @@ func TestAppendDefaultMountOptions(t *testing.T) {
"actimeo=3",
fmt.Sprintf("%s=%s", fileMode, defaultFileMode),
fmt.Sprintf("%s=%s", dirMode, defaultDirMode),
fmt.Sprintf("%s=%s", vers, defaultVers),
mfsymlinks,
},
},
Expand All @@ -118,7 +114,6 @@ func TestAppendDefaultMountOptions(t *testing.T) {
mfsymlinks,
fmt.Sprintf("%s=%s", fileMode, defaultFileMode),
fmt.Sprintf("%s=%s", dirMode, defaultDirMode),
fmt.Sprintf("%s=%s", vers, defaultVers),
fmt.Sprintf("%s=%s", actimeo, defaultActimeo),
},
},
Expand All @@ -127,7 +122,6 @@ func TestAppendDefaultMountOptions(t *testing.T) {
expected: []string{"", fmt.Sprintf("%s=%s",
fileMode, defaultFileMode),
fmt.Sprintf("%s=%s", dirMode, defaultDirMode),
fmt.Sprintf("%s=%s", vers, defaultVers),
fmt.Sprintf("%s=%s", actimeo, defaultActimeo),
mfsymlinks,
},
Expand Down

0 comments on commit 6d54649

Please # to comment.