Spdk/lib/bdev
Ben Walker 2b768821bf blob: spdk_bs_destroy now only zeroes the super block
The function just needs to zero out metadata so that the
blobstore is effectively destroyed. If the user wants
to unmap the rest of the disk after the blobstore is
destroyed, they are free to do so. On future initializations
of blobstores the code will do the unmapping, so performance
is not impacted.

While here, implement the zeroing using the new
write_zeroes functionality instead of allocating a buffer
full of zeroes.

Change-Id: I7f18be0fd5e13a48b171ab3f4d5f5e12876023bc
Signed-off-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-on: https://review.gerrithub.io/390307
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
2017-12-06 17:21:46 -05:00
..
aio bdev: handling duplicated bdev name 2017-11-28 16:20:30 -05:00
error bdev: add callback to free part_base 2017-10-01 21:57:00 -04:00
gpt bdev: remove get_ctx_size functions that return 0 2017-12-01 13:25:16 -05:00
lvol blob: spdk_bs_destroy now only zeroes the super block 2017-12-06 17:21:46 -05:00
malloc bdev/malloc: use spdk/queue.h macros for bdev list 2017-12-04 14:36:19 -05:00
null bdev/null: unregister the null bdev when app exit. 2017-12-04 14:36:56 -05:00
nvme bdev/nvme: simplify spdk_bdev_nvme_get_ctrlr() 2017-12-01 13:24:45 -05:00
pmem bdev/pmem: require name in construct_pmem_bdev RPC 2017-12-04 18:51:14 -05:00
rbd bdev/rbd: unregitster the bdev when app exit. 2017-12-04 17:40:36 -05:00
rpc bdev: add callback to spdk bdev unregister and bdev destruct 2017-10-26 17:23:58 -04:00
split bdev: remove get_ctx_size functions that return 0 2017-12-01 13:25:16 -05:00
virtio virtio: remove init/attached vdev distinction 2017-12-05 23:06:38 -05:00
bdev.c bdev: handling duplicated bdev name 2017-11-28 16:20:30 -05:00
Makefile bdev_virtio: added --without-virtio configure flag 2017-10-19 19:06:12 -04:00
scsi_nvme.c nvme_spec: remove SGL Sub Type Invalid status code 2017-09-22 17:11:53 -04:00
vtune.c bdev: #include VTune file to control warnings 2017-06-08 12:44:25 -04:00