This patch adds mechanism to simulate power failure in blobstore unit tests at any given moment in time. This point in time is measured by number of IO operations occured after triggering power failure with the number of IO operations given as a parameter. Number of IO operations parameter can be defined as any type IOs, writes, reads, unmaps, writes zero or flushes. Signed-off-by: Maciej Szwed <maciej.szwed@intel.com> Change-Id: I7be45331bb5110f6c16f01fd7c4e7984b2d1977d Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/454451 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> |
||
---|---|---|
.. | ||
blob.c | ||
bs_dev_common.c | ||
bs_scheduler.c | ||
Makefile |