Aleksandr, > SPC-5 (4.2.5.6 Allocation length) requires to terminate transfers to > the Data In Buffer when the number of bytes or blocks specified by the > ALLOCATION LENGTH field have been transferred or when all available > data have been transferred, whichever is less. > > PERSISTENT RESERVE IN service actions in TCM don't follow the clause > and return ALLOCATION LENGTH of data, even if actual number of data in > reply is less (e.g. there are no reservation keys). > > That causes an underflow and a failure in libiscsi PrinReadKeys.Simple > that expects Data In Buffer size equal to ADDITIONAL LENGTH + 8. Applied to 5.12/scsi-staging, thanks! -- Martin K. Petersen Oracle Linux Engineering