ソースを参照

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 {