[PATCH] UNMAP Change order of no-media and thin-provisioning tests

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Attachment: 0001-Check-for-MediaPresent-before-checking-for-ThinProvi.patch.gz
Description: GNU Zip compressed data

Attachment: 0001-Check-for-MediaPresent-before-checking-for-ThinProvi.patch
Description: Binary data


[Index of Archives]     [Linux SCSI]     [Linux RAID]     [Linux Clusters]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]

  Powered by Linux