Commit 50e46428 authored by andyzhangx's avatar andyzhangx

add mount options for azure disk

parent 44f24d21
...@@ -104,6 +104,10 @@ func (m *azureDiskMounter) SetUpAt(dir string, fsGroup *int64) error { ...@@ -104,6 +104,10 @@ func (m *azureDiskMounter) SetUpAt(dir string, fsGroup *int64) error {
options = append(options, "ro") options = append(options, "ro")
} }
if m.options.MountOptions != nil {
options = volume.JoinMountOptions(m.options.MountOptions, options)
}
glog.V(4).Infof("azureDisk - Attempting to mount %s on %s", diskName, dir) glog.V(4).Infof("azureDisk - Attempting to mount %s on %s", diskName, dir)
isManagedDisk := (*volumeSource.Kind == v1.AzureManagedDisk) isManagedDisk := (*volumeSource.Kind == v1.AzureManagedDisk)
globalPDPath, err := makeGlobalPDPath(m.plugin.host, volumeSource.DataDiskURI, isManagedDisk) globalPDPath, err := makeGlobalPDPath(m.plugin.host, volumeSource.DataDiskURI, isManagedDisk)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment