numam-spdk/lib/blob
Maciej Szwed e8356fd233 blobstore: Cleanup after power failure while creating snapshot
Currently we are missing cleanup routine for case when
power failure interrupts creating snapshot. This patch
add such routine.

For the case where we find blob with a parent snapshot ID
matching newly created snapshot we can finish whole process
during recovery by processing forward with setting snpashot
as read only, removing xattr and syncing. We should remove
snapshot only if there is no blob with parent pointing at
snapshot.

Fixes github issue #760

Signed-off-by: Maciej Szwed <maciej.szwed@intel.com>
Change-Id: I2f0e298164e07a2b4dfa5367e8878facef640702
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/455216
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
2019-06-26 08:00:14 +00:00
..
bdev blobstore: Add support for bdev_blob_queue_io in blobstore 2018-09-11 21:19:34 +00:00
blob_bs_dev.c blobstore: allow I/O operations to use io unit size smaller than page size. 2018-10-04 21:35:24 +00:00
blobstore.c blobstore: Cleanup after power failure while creating snapshot 2019-06-26 08:00:14 +00:00
blobstore.h blobstore: Remove blob on blobstore load when required 2019-05-24 23:09:56 +00:00
Makefile blobstore: Add a blob_bs_dev that provides back_bs_dev for clones 2018-03-08 11:34:15 -05:00
request.c blob: fix scanbuild failures in this file. 2019-05-16 20:53:21 +00:00
request.h blob: remove unused internal functions 2018-08-30 03:41:01 +00:00
zeroes.c blob: return error for write_zeroes and unmap requests 2019-06-07 18:37:53 +00:00