From 8028e953b6da0aeea12015228996fde4b674f53e Mon Sep 17 00:00:00 2001 From: Michael Rubin Date: Thu, 7 Jul 2016 16:47:35 -0700 Subject: [PATCH] Revert "Mount r/w GCE PD disks with -o discard" --- pkg/volume/gce_pd/attacher.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/pkg/volume/gce_pd/attacher.go b/pkg/volume/gce_pd/attacher.go index b9485268dd1..c60a02aeaee 100644 --- a/pkg/volume/gce_pd/attacher.go +++ b/pkg/volume/gce_pd/attacher.go @@ -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()}