From 63785678f3941c84be01d3ab7867e2742ea9fe3e Mon Sep 17 00:00:00 2001 From: Pavel Dovgalyuk Date: Mon, 14 Mar 2016 10:45:10 +0300 Subject: replay: introduce block devices record/replay This patch introduces block driver that implement recording and replaying of block devices' operations. All block completion operations are added to the queue. Queue is flushed at checkpoints and information about processed requests is recorded to the log. In replay phase the queue is matched with events read from the log. Therefore block devices requests are processed deterministically. Signed-off-by: Pavel Dovgalyuk [ kwolf: Rebased onto modified and already applied part of the series ] Signed-off-by: Kevin Wolf --- replay/replay-internal.h | 1 + 1 file changed, 1 insertion(+) (limited to 'replay/replay-internal.h') diff --git a/replay/replay-internal.h b/replay/replay-internal.h index 11f9a85..efbf14c 100644 --- a/replay/replay-internal.h +++ b/replay/replay-internal.h @@ -49,6 +49,7 @@ enum ReplayAsyncEventKind { REPLAY_ASYNC_EVENT_INPUT, REPLAY_ASYNC_EVENT_INPUT_SYNC, REPLAY_ASYNC_EVENT_CHAR_READ, + REPLAY_ASYNC_EVENT_BLOCK, REPLAY_ASYNC_COUNT }; -- cgit v1.1