Tomo, Please find attached a trivial patch to the UNMAP command. It only changes in which order we perform two error checks. Currently TGTD checks the UNMAP command using the sequence 1, if not-ThinProvisioned then error 2, if NoMedia then error But since ThinProvisioning is more an attribute of the media itself and not of the LUN/DiskDrive it makes it more logical to do the checks in the reverse order for LUNs that support BOTH removable media and thin-provisioning like this : 1, if NoMedia then error 2, if not ThinProvisioned then error regards ronnie sahlberg -------------- next part -------------- A non-text attachment was scrubbed... Name: 0001-Check-for-MediaPresent-before-checking-for-ThinProvi.patch.gz Type: application/x-gzip Size: 778 bytes Desc: not available URL: <http://lists.wpkg.org/pipermail/stgt/attachments/20120718/7a949037/attachment.bin> -------------- next part -------------- A non-text attachment was scrubbed... Name: 0001-Check-for-MediaPresent-before-checking-for-ThinProvi.patch Type: application/octet-stream Size: 1448 bytes Desc: not available URL: <http://lists.wpkg.org/pipermail/stgt/attachments/20120718/7a949037/attachment.obj> |