浏览代码

Enable UNMAP on iSCSI mounts

JDierkse 2 年之前
父节点
当前提交
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 {