]> 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)
commitdaef6ff52b53c2c4488a49f2658ce518d4c61815
tree390a7a5aae203ed6475f3fc51f21700d7341a148
parent62f287c4f6839463068c81246fe53ae608aaa7ce
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