This is the first step toward fixing the behavior of the lvol bdev module so that it handles spdk_bdev_unregister() correctly. Currently, when an lvol bdev is unregistered, this causes the associated lvol to be deleted; this isn't the desired behavior, since spdk_bdev_unregister() is just meant to drop the currently-exposed bdev, as in a hot-unplug event, not destroy the backing storage. The current implementation of the new destroy_lvol_bdev method still calls into the exsting (broken) spdk_bdev_unregister() path, but this at least lets us fix the existing delete_bdev RPC callers that really intended to destroy the lvol. The next step is to make vbdev_lvol_destroy() call spdk_lvol_destroy() instead of unregistering the bdev, which will require cleanup in the generic lvol layer to remove the close_only flag. Change-Id: Ic4cb51305d31f6d7366a82ba7bf7b19ebbcd3e9c Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-on: https://review.gerrithub.io/408084 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> |
||
---|---|---|
.. | ||
.gitignore | ||
about.md | ||
bdev_module.md | ||
bdev_pg.md | ||
bdev.md | ||
blob.md | ||
blobfs.md | ||
concurrency.md | ||
directory_structure.md | ||
Doxyfile | ||
event.md | ||
footer.html | ||
getting_started.md | ||
header.html | ||
index.md | ||
ioat.md | ||
iscsi.md | ||
jsonrpc.md | ||
lvol.md | ||
Makefile | ||
memory.md | ||
nvme-cli.md | ||
nvme.md | ||
nvmf_tgt_pg.md | ||
nvmf.md | ||
peer_2_peer.md | ||
porting.md | ||
README.md | ||
spdkcli.md | ||
ssd_internals.md | ||
stylesheet.css | ||
template_pg.md | ||
userspace.md | ||
vagrant.md | ||
vhost.md | ||
virtio.md |
SPDK Documentation
The current version of the SPDK documentation can be found online at http://www.spdk.io/doc/
Building the Documentation
To convert the documentation into HTML run make
in the doc
directory. The output will be located in doc/output/html
. Before
running make
ensure all pre-requisites are installed. See
Installing Prerequisites
for more details.