filesetup: improve LFSR init failure error message
authorVincent Fu <vincent.fu@wdc.com>
Mon, 11 Nov 2019 16:30:53 +0000 (11:30 -0500)
committerJens Axboe <axboe@kernel.dk>
Thu, 14 Nov 2019 21:07:22 +0000 (14:07 -0700)
commit78f59d40ab927e91f0b46573831d0fe1422ab5f3
tree3e9359e5c8677123c940002687a983537f6e6be3
parentcc16261082a4d0f027cef9d019ad023129bf6012
filesetup: improve LFSR init failure error message

Especially with small sample spaces, the LFSR random generator
occasionally fails to initialize successfully. When this occurs, the
error message refers to problems allocating a random map. Change the
error message to explicitly mention the LFSR failure.

OLD BEHAVIOR
$ ./fio --name=test --ioengine=null --size=4k --random_generator=lfsr --rw=randread --randrepeat=0
test: (g=0): rw=randread, bs=(R) 4096B-4096B, (W) 4096B-4096B, (T) 4096B-4096B, ioengine=null, iodepth=1
fio-3.16-13-g998b-dirty
Starting 1 process
fio: failed allocating random map. If running a large number of jobs, try the 'norandommap' option or set 'softrandommap'. Or give a larger --alloc-size to fio.

NEW BEHAVIOR
$ ./fio --name=test --ioengine=null --size=4k --random_generator=lfsr --rw=randread --randrepeat=0
test: (g=0): rw=randread, bs=(R) 4096B-4096B, (W) 4096B-4096B, (T) 4096B-4096B, ioengine=null, iodepth=1
fio-3.16-37-g65ee
Starting 1 process
fio: failed initializing LFSR

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