replay-log: add validations for corrupt log entries
authorAmir Goldstein <amir73il@gmail.com>
Thu, 7 Sep 2017 10:03:07 +0000 (13:03 +0300)
committerEryu Guan <eguan@redhat.com>
Sat, 9 Sep 2017 10:15:53 +0000 (18:15 +0800)
commit9892f3155f63322843cb173ec032ba07a1975acf
treeb919a65a90846d55bc3b3abc2983f3795fea0fb7
parentb1e2e6b0279e9a9d0d1b4125377114ba1e5936bd
replay-log: add validations for corrupt log entries

Check for all zeros entry and for non zero padded entry
and report log offset of corrupted log entry.

Also report log offsets with -v and -vv debug prints.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
src/log-writes/log-writes.c
src/log-writes/log-writes.h
src/log-writes/replay-log.c