Spdk/lib/bdev
Dariusz Stojaczyk 43be836ae5 bdev_virtio: use READ CAPACITY (10) for initial target scan
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>
2017-09-22 12:58:51 -04:00
..
aio bdev: convert bdev module APIs to use blocks 2017-09-06 13:01:13 -04:00
error bdev/error: use bdev_part helper functions 2017-09-12 11:16:50 -04:00
gpt bdev/gpt: fix use after free of gpt_base 2017-09-14 14:26:40 -04:00
lvol lvol: add get_lvol_stores RPC 2017-09-18 12:19:16 -04:00
malloc bdev/malloc: remove the unnecessary operation on len 2017-09-20 19:59:48 -04:00
null bdev: convert bdev module APIs to use blocks 2017-09-06 13:01:13 -04:00
nvme bdev/bdev_nvme.c: correct order of args in unmap call 2017-09-11 19:08:22 -04:00
rbd bdev: convert bdev module APIs to use blocks 2017-09-06 13:01:13 -04:00
rpc bdev: remove bdev_opened_for_write restriction 2017-09-20 14:43:32 -04:00
split bdev: add common partition helper functions 2017-09-12 11:16:50 -04:00
virtio bdev_virtio: use READ CAPACITY (10) for initial target scan 2017-09-22 12:58:51 -04:00
bdev.c bdev: remove bdev_opened_for_write restriction 2017-09-20 14:43:32 -04:00
Makefile lvol: Logical volume implementation 2017-09-14 19:30:54 -04:00
scsi_nvme.c bdev: add API to translate to SCSI status 2017-05-04 09:11:42 -07:00
vtune.c bdev: #include VTune file to control warnings 2017-06-08 12:44:25 -04:00