Enable UNMAP on iSCSI mounts

This commit is contained in:
2023-05-12 11:41:20 +02:00
parent bd67f72598
commit 826c381ead
+1 -1
View File
@@ -330,7 +330,7 @@ func (d *iscsiDriver) mountVolume(v *iscsiVolume) error {
} }
// Mount // Mount
cmd = "mount " + device + " " + v.Mountpoint cmd = "mount -o discard " + device + " " + v.Mountpoint
out, errMsg = util.ExecuteCommandString(cmd) out, errMsg = util.ExecuteCommandString(cmd)
if len(out) > 0 { if len(out) > 0 {