verify: treat as failure if given verify type is different from media
authorJens Axboe <axboe@kernel.dk>
Fri, 30 Nov 2012 08:39:02 +0000 (09:39 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 30 Nov 2012 08:39:02 +0000 (09:39 +0100)
commitf00b210f73a8562c2cc64d73aee04875d25162b0
treec371772701d341fae49de997263c71ef0b02d835
parentb96d243044023b28731341d290943b5d47a5f794
verify: treat as failure if given verify type is different from media

When fio verifies right now, it'll look at the on media stored type
and verify that type. This means that if verify=foo set and we
find older blocks that are written with verify=bar, we will
verify those against bar.

Change this so that if a specific verify type is given, that type
is ALWAYS used for verification. If none is given but asked to
verify, we retain the old behaviour of just verifying based on
the type given in the on-media block.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
verify.c