4fc7e66614
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> |
||
---|---|---|
.. | ||
aio | ||
error | ||
gpt | ||
malloc | ||
null | ||
nvme | ||
rbd | ||
rpc | ||
split | ||
bdev.c | ||
Makefile | ||
scsi_nvme.c | ||
vtune.c |