Эх сурвалжийг харах

Enable UNMAP on iSCSI mounts

JDierkse 2 жил өмнө
parent
commit
826c381ead
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      driver.go

+ 1 - 1
driver.go

@@ -330,7 +330,7 @@ func (d *iscsiDriver) mountVolume(v *iscsiVolume) error {
 	}
 
 	// Mount
-	cmd = "mount " + device + " " + v.Mountpoint
+	cmd = "mount -o discard " + device + " " + v.Mountpoint
 	out, errMsg = util.ExecuteCommandString(cmd)
 
 	if len(out) > 0 {