numam-spdk/test
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
..
app test/app/stub: remove sentinel file on shutdown 2017-06-23 11:02:04 -04:00
blobfs/rocksdb Revert "test/blobfs: use test stub" 2017-06-27 13:52:15 -04:00
cpp_headers test/cpp_headers: autogenerate header test files 2016-10-03 10:24:18 -07:00
iscsi_tgt blockdev, nvme: Test parsing device exported by NVMe-oF in conf 2017-07-07 13:23:24 -04:00
lib bdev: add vbdev claim/release semantics 2017-07-14 13:31:30 -04:00
nvmf log: Remove configurable log facility 2017-07-05 19:28:29 -04:00
unit bdev: add vbdev claim/release semantics 2017-07-14 13:31:30 -04:00
vhost test/vhost: remove tee pipe from vhost start command 2017-07-13 19:18:18 -04:00
Makefile test: begin moving unit tests into test/unit 2017-06-16 16:43:48 -04:00
spdk_cunit.h include: Move the remainder of the code base to stdinc.h 2017-05-08 13:20:36 -07:00