add vers mountoptions and fix comments

This commit is contained in:
andyzhangx
2017-11-16 07:12:05 +00:00
parent badefda861
commit e316bbcdb3
3 changed files with 27 additions and 14 deletions

View File

@@ -222,7 +222,7 @@ func (b *azureFileMounter) SetUpAt(dir string, fsGroup *int64) error {
} else {
os.MkdirAll(dir, 0700)
// parameters suggested by https://azure.microsoft.com/en-us/documentation/articles/storage-how-to-use-files-linux/
options := []string{fmt.Sprintf("vers=3.0,username=%s,password=%s", accountName, accountKey)}
options := []string{fmt.Sprintf("username=%s,password=%s", accountName, accountKey)}
if b.readOnly {
options = append(options, "ro")
}