use 'lib/pattern' to parse patterns and paste formats into buffers
authorRoman Pen <r.peniaev@gmail.com>
Wed, 19 Aug 2015 10:33:11 +0000 (12:33 +0200)
committerJens Axboe <axboe@fb.com>
Fri, 4 Sep 2015 19:33:09 +0000 (13:33 -0600)
commit61b9861d45dcd6be23c527861b32aa36bcd1b682
treed42c0ae295c0dff4d9aacc823658c6868e5f3777
parent71deafc693ad77947f5c3f72e7247eefcb97bd63
use 'lib/pattern' to parse patterns and paste formats into buffers

Switch to new 'lib/pattern' helpers.

Now 'buffer_pattern' and 'verify_pattern' options support combined input
and strings like:

 buffer_pattern="1234"0xface"5678"
 verify_pattern=0xface"1234"-12+14

can be specified.

Also, 'verify_pattern' supports '%o' format, which means that buffer will
be patched on each iteration with real 'block offset' number.

So, f.e. 'verify_pattern' such combined input is valid:

 verify_pattern=%o

 or

 verify_pattern=%o"123"%o

Signed-off-by: Roman Pen <r.peniaev@gmail.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
HOWTO
options.c
thread_options.h
verify.c
verify.h