Tweak handling of write traces with --readonly
authorJens Axboe <jens.axboe@oracle.com>
Fri, 7 Mar 2008 12:39:59 +0000 (13:39 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Fri, 7 Mar 2008 12:39:59 +0000 (13:39 +0100)
commited4aa70764eb13c4bb36cd1b0647c26859f7bbd0
treeb86d5d2187ac14ca8359234c22a3fd53e656de76
parent5b3023b818d5127504b4889f8f718c3cef62700b
Tweak handling of write traces with --readonly

Don't add them at all, that allows us to replay a trace with writes
included when the --readonly switch is set. Before it would tell you
that it was 'X' number of writes, and then fail when it tried to
replay then anyway. Now just don't add those events.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
log.c