Spdk/test/unit/lib
Cunyin Chang 9f891d14ce blob: Make the files persisted cross power failure.
We only sync the metadata and data in the runtime of blobstore, which
means we only update the used md bitmap and used clusters bitmap in memory.
if the system crushed, we have no chance to sync the used md bitmap and
used clusters bitmap into disk, then next time when we try to load the
blobstore, all the data will lost, this patch add the logic to recover the
valid data from last dirty shutdown. We will go through all the metadata pages
to find all valid data and rebuild them.

Change-Id: Ieb7c5f932206b1b68fdde0cee35f2d2cb3a4f309
Signed-off-by: Cunyin Chang <cunyin.chang@intel.com>
Reviewed-on: https://review.gerrithub.io/376470
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2017-10-19 15:13:58 -04:00
..
bdev lvol: add spdk_lvs_opts_init() 2017-10-19 13:23:58 -04:00
blob blob: Make the files persisted cross power failure. 2017-10-19 15:13:58 -04:00
blobfs blobfs, tree: fix a bug in spdk_tree_insert_buffer 2017-08-15 16:36:41 -04:00
event ut/event: add fatal assert for allocation 2017-10-17 11:34:38 -04:00
ioat test: move IOAT library unit test to test/unit 2017-06-21 18:57:35 -04:00
iscsi iscsi: delete spdk_iscsi_find_init_grp() function. 2017-10-16 19:27:35 -04:00
json test/json_util_ut: assert that string is valid 2017-07-12 18:13:23 -04:00
jsonrpc jsonrpc: allow asynchronous request completion 2017-07-12 12:10:31 -04:00
log log: add new parm to spdk_trace_dump() 2017-09-06 17:33:03 -04:00
lvol lvol: add spdk_lvs_opts_init() 2017-10-19 13:23:58 -04:00
nvme ut/nvme: clean up mutex and mutexattr 2017-10-17 11:34:38 -04:00
nvmf nvmf: don't allow 0xFFFFFFFF as a NSID 2017-09-19 17:16:59 -04:00
scsi scsi: add UT code for spdk_scsi_dev_add/delete_port 2017-10-12 15:46:14 -04:00
util util: fail io_device unregister if foreach operations outstanding 2017-09-20 19:27:06 -04:00
vhost vhost: wrap rte_vhost_vring into spdk_vhost_vring 2017-10-17 13:37:56 -04:00
Makefile lvol: Logical volume implementation 2017-09-14 19:30:54 -04:00