Spdk/test/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
..
bdevio test/bdevio: add delay before starting unit tests 2017-07-12 12:42:56 -04:00
bdevperf bdev: add spdk_bdev_open/close 2017-07-05 18:04:28 -04:00
nbd nbd: add -t tracelog flag support 2017-07-10 18:36:00 -04:00
bdev.conf.in bdev/aio: The user now provides the names of AIO bdevs 2017-03-20 15:18:03 -07:00
blockdev.sh bdev: add vbdev claim/release semantics 2017-07-14 13:31:30 -04:00
common.c event: remove spdk_app_init 2017-06-15 18:26:52 -04:00
Makefile test/bdev: add nbd test app 2017-06-23 13:01:04 -04:00