numam-spdk/lib/bdev
Jim Harris 4fc7e66614 bdev: add vbdev claim/release semantics
vbdev modules still open/close bdevs as normal, but
should open bdevs read only when tasting (i.e. reading
the GPT to see if there are SPDK partitions).  When
a vbdev module is ready to claim the bdev for purposes
of creating virtual bdevs on top of it, it calls
spdk_vbdev_module_claim_bdev().  It can pass its
open descriptor as well to have it promoted to
write access (required for future vbdev modules like
logical volumes).

Note: error vbdev was changed to copy the base bdev
parameters one-by-one instead of a blind memcpy - we
do not want to copy the base bdev's vbdev_claim_module
into the new bdev!

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: If2ee67dc78daf96050343c473671aa3402991bb1

Reviewed-on: https://review.gerrithub.io/368628
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
2017-07-14 13:31:30 -04:00
..
aio bdev: add pointer to module structure 2017-07-12 12:42:56 -04:00
error bdev: add vbdev claim/release semantics 2017-07-14 13:31:30 -04:00
gpt bdev: add vbdev claim/release semantics 2017-07-14 13:31:30 -04:00
malloc bdev: add pointer to module structure 2017-07-12 12:42:56 -04:00
null bdev: add pointer to module structure 2017-07-12 12:42:56 -04:00
nvme bdev: initialize vbdev modules first 2017-07-12 12:42:56 -04:00
rbd bdev: add pointer to module structure 2017-07-12 12:42:56 -04:00
rpc bdev: add vbdev claim/release semantics 2017-07-14 13:31:30 -04:00
split bdev: add vbdev claim/release semantics 2017-07-14 13:31:30 -04:00
bdev.c bdev: add vbdev claim/release semantics 2017-07-14 13:31:30 -04:00
Makefile GPT: add GPT bdev support 2017-07-06 13:44:37 -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