+67
−15
Loading
Added READ CAPACITY (10) support. This is a work towards supporting both (10) and (16)-bit SCSI commands. If READ CAPACITY (10) returns 0xFFFFFFFF as max lba, a READ CAPACITY (16) is sent. As specified in SBC-3 5.10.2 READ CAPACITY (10): ``` If the number of logical blocks exceeds the maximum value that is able to be specified in the RETURNED LOGICAL BLOCK ADDRESS field, the device server shall set the RETURNED LOGICAL BLOCK ADDRESS field to FFFFFFFFh. The application client should then issue a READ CAPACITY (16) command (see 3.27) to retrieve the READ CAPACITY (16) parameter data. ``` Change-Id: If82bc45e904e91d95b124724e895350098337ae9 Signed-off-by:Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com> Reviewed-on: https://review.gerrithub.io/377091 Tested-by:
SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by:
Jim Harris <james.r.harris@intel.com> Reviewed-by:
Changpeng Liu <changpeng.liu@intel.com> Reviewed-by:
Daniel Verkamp <daniel.verkamp@intel.com>