pattern: Add support for files in buffer_pattern argument.
authorStephen Bates <sbates@raithlin.com>
Thu, 8 Jun 2017 11:46:46 +0000 (05:46 -0600)
committerJens Axboe <axboe@fb.com>
Thu, 8 Jun 2017 15:19:24 +0000 (09:19 -0600)
commita1554f6519e7c91b262a35486d100d757b3b5b8a
tree7291d2ac83e9517e3f58d6e967e687750c8b1a9c
parenta35ef7cb514d02671bdcb029a64785bbc288fe96
pattern: Add support for files in buffer_pattern argument.

It is useful to be able to initialize the buffer contents using an
input file (e.g. when testing certain pathological patterns for
compression). Add support to the buffer_pattern input argument for
reading data from a file via enclosing the filename in ``''``.

Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Logan Gunthorpe <logang@deltatee.com>
Reviewed-By: Muli Ben-Yehuda <muli@lightbitslabs.com>
Signed-off-by: Stephen Bates <sbates@raithlin.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
HOWTO
lib/pattern.c