sahlberg / libiscsi

iscsi client library and utilities
Other
192 stars 165 forks source link

iscsi-discard: adapt block limits #397

Closed pizhenwei closed 1 year ago

pizhenwei commented 1 year ago

The blocks may exceed the block limits offered by the target, query unmap/write zero max blocks by inquiry SCSI_INQUIRY_PAGECODE_BLOCK_LIMITS command, than use a loop to do the job.

pizhenwei commented 1 year ago

Hi @sahlberg PING