]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit51e52ac27fe9a59a14a0703e72960403590af066
tree390a7a5aae203ed6475f3fc51f21700d7341a148
parentdaa66325ee44c5368de367ed1772e7889b9afeed
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