aboutsummaryrefslogtreecommitdiff
path: root/replay/replay.c
diff options
context:
space:
mode:
authorPavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru>2016-03-14 10:45:10 +0300
committerKevin Wolf <kwolf@redhat.com>2016-03-30 12:15:57 +0200
commit63785678f3941c84be01d3ab7867e2742ea9fe3e (patch)
tree789d6d22b463e23ea5737ce9036c8160eccfab1a /replay/replay.c
parent95b4aed5fd0bec00e2c3f754c86fec5ba7a83a20 (diff)
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 <pavel.dovgaluk@ispras.ru> [ kwolf: Rebased onto modified and already applied part of the series ] Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'replay/replay.c')
-rw-r--r--replay/replay.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/replay/replay.c b/replay/replay.c
index ec32c81072..7c2573a612 100644
--- a/replay/replay.c
+++ b/replay/replay.c
@@ -21,7 +21,7 @@
/* Current version of the replay mechanism.
Increase it when file format changes. */
-#define REPLAY_VERSION 0xe02003
+#define REPLAY_VERSION 0xe02004
/* Size of replay log header */
#define HEADER_SIZE (sizeof(uint32_t) + sizeof(uint64_t))