Revert "Mount r/w GCE PD disks with -o discard"

pull/6/head
Michael Rubin 2016-07-07 16:47:35 -07:00 committed by GitHub
parent 3494f8e2f9
commit 8028e953b6
1 changed files with 0 additions and 3 deletions

View File

@ -165,9 +165,6 @@ func (attacher *gcePersistentDiskAttacher) MountDevice(spec *volume.Spec, device
options := []string{}
if readOnly {
options = append(options, "ro")
} else {
// as per https://cloud.google.com/compute/docs/disks/add-persistent-disk#formatting
options = append(options, "discard")
}
if notMnt {
diskMounter := &mount.SafeFormatAndMount{Interface: mounter, Runner: exec.New()}