null_blk: add zoned config support information
authorJohn Pittman <jpittman@redhat.com>
Fri, 4 Jan 2019 17:06:37 +0000 (12:06 -0500)
committerJens Axboe <axboe@kernel.dk>
Sun, 6 Jan 2019 17:58:27 +0000 (10:58 -0700)
commit373282e7ab6840cd583a223fa90628f2d8293c26
tree390a7a5aae203ed6475f3fc51f21700d7341a148
parentbb351abaf5cd4f9237e1b3094d9cc04853de6d95
null_blk: add zoned config support information

If the kernel is built without CONFIG_BLK_DEV_ZONED, a modprobe
of the null_blk driver with zoned=1 fails with 'Invalid argument'.
This can be confusing to users, prompting a search as to why the
parameter is invalid. To assist in that search, add a bit more
information to the failure, additionally adding to the documentation
that CONFIG_BLK_DEV_ZONED is needed for zoned=1.

Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: John Pittman <jpittman@redhat.com>
Added null_blk prefix to error message.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
Documentation/block/null_blk.txt
drivers/block/null_blk.h