Spdk/include/spdk
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
..
assert.h include: move standard includes into spdk/stdinc.h 2017-05-08 10:11:01 -07:00
barrier.h barrier: added spdk_smp_*mb to sync between cores 2017-11-29 10:51:42 -05:00
bdev.h bdev: Remove poller abstraction 2017-11-28 15:29:35 -05:00
bit_array.h include: move standard includes into spdk/stdinc.h 2017-05-08 10:11:01 -07:00
blob_bdev.h blob: add support for base bdev claim 2017-10-11 12:13:38 -04:00
blob.h blob: spdk_bs_destroy now only zeroes the super block 2017-12-06 17:21:46 -05:00
blobfs.h io_channel: Remove per-channel priority 2017-05-26 13:42:19 -04:00
conf.h include: move standard includes into spdk/stdinc.h 2017-05-08 10:11:01 -07:00
copy_engine.h event/subsystem/bdev: asynchronous SPDK finish 2017-10-27 13:03:55 -04:00
crc32.h util: add CRC32 utility functions 2017-08-02 19:47:35 -04:00
endian.h include: move standard includes into spdk/stdinc.h 2017-05-08 10:11:01 -07:00
env.h env: add an opaque pointer for implementation use 2017-11-09 12:51:50 -05:00
event.h event: Move spdk_poller_register to io_channel 2017-11-28 12:30:37 -05:00
fd.h include: move standard includes into spdk/stdinc.h 2017-05-08 10:11:01 -07:00
gpt_spec.h bdev/gpt: dump partition name 2017-07-12 18:12:52 -04:00
histogram_data.h histogram: move nvme/perf histogram code to a common header 2017-06-14 14:20:03 -04:00
io_channel.h channel: Add spdk_for_each_thread 2017-11-28 15:29:35 -05:00
ioat_spec.h include: move standard includes into spdk/stdinc.h 2017-05-08 10:11:01 -07:00
ioat.h copy: return 0 on success and appropriate errno on failure 2017-09-25 13:56:29 -04:00
iscsi_spec.h iscsi: fix layout of logout request reason field 2017-09-22 16:11:11 -04:00
json.h json: add function to write UTF-16LE strings 2017-07-12 18:12:52 -04:00
jsonrpc.h jsonrpc: modify API to pass request to handler 2017-07-06 13:48:12 -04:00
likely.h include: move standard includes into spdk/stdinc.h 2017-05-08 10:11:01 -07:00
log.h log: change spdk_trace_dump() to take a void * 2017-10-17 16:26:02 -04:00
lvol.h blob: spdk_bs_destroy now only zeroes the super block 2017-12-06 17:21:46 -05:00
mmio.h mmio: add functions for 1 and 2 byte I/O accesses 2017-10-13 10:46:00 -04:00
nbd.h nbd: allow exporting more than one NBD at once 2017-08-07 17:56:21 -04:00
net.h subsystem: remove fini return code 2017-10-10 10:56:34 -04:00
nvme_intel.h include: move standard includes into spdk/stdinc.h 2017-05-08 10:11:01 -07:00
nvme_spec.h nvme_spec: add NVMe 1.3 Virtualization structures. 2017-11-10 12:49:18 -05:00
nvme.h nvme: add new spdk_nvme_connect() API to directly attach the ctrlr 2017-10-09 12:31:12 -04:00
nvmf_spec.h include: move standard includes into spdk/stdinc.h 2017-05-08 10:11:01 -07:00
nvmf.h nvmf: Look up bdev channel from poll group instead of namespace 2017-12-04 16:02:16 -05:00
pci_ids.h env: add pci_virtio.c 2017-09-26 14:28:24 -04:00
queue_extras.h Break out queue.h code pulled from FreeBSD into a separate file. 2015-09-25 12:45:04 -07:00
queue.h Add extern "C" wrapper to all public headers 2016-02-12 07:52:35 -07:00
rpc.h jsonrpc: modify API to pass request to handler 2017-07-06 13:48:12 -04:00
scsi_spec.h bdev-virtio: add test unit ready and start/stop to scan sequence 2017-12-04 14:39:27 -05:00
scsi.h scsi: remove port from scsi_dev dynamically 2017-10-12 15:46:14 -04:00
stdinc.h build: Automatically detect use of POSIX includes 2017-05-08 13:20:37 -07:00
string.h lib: replace strerror with strerror_r 2017-08-15 16:47:01 -04:00
trace.h trace: Move trace flags to separate implementation file 2017-11-15 18:57:12 -05:00
util.h util: add spdk_u32_is_pow2() function 2017-08-11 19:36:30 -04:00
version.h version: v18.01-pre 2017-10-31 18:28:21 -04:00
vhost.h vhost: interrupts coalescing 2017-10-27 13:06:40 -04:00