From 826c381eadb2c697ca3b46053e34d127c15a0c83 Mon Sep 17 00:00:00 2001 From: JDierkse Date: Fri, 12 May 2023 11:41:20 +0200 Subject: [PATCH] Enable UNMAP on iSCSI mounts --- driver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver.go b/driver.go index 85ca142..f3b0bfd 100644 --- a/driver.go +++ b/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 {