Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 92153d30 authored by Yasuaki Ishimatsu's avatar Yasuaki Ishimatsu Committed by Jens Axboe
Browse files

null_blk: add usage hints for NVM



If CONFIG_NVM is disabled, loading null_block module with use_lightnvm=1
fails. But there are no messages and documents related to the failure.

Add the appropriate error message.

Signed-off-by: default avatarYasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>

Massaged the text a bit.

Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent 0a6219a9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -72,4 +72,4 @@ use_per_node_hctx=[0/1]: Default: 0
     queue for each CPU node in the system.

use_lightnvm=[0/1]: Default: 0
  Register device with LightNVM. Requires blk-mq to be used.
  Register device with LightNVM. Requires blk-mq and CONFIG_NVM to be enabled.
+1 −0
Original line number Diff line number Diff line
@@ -577,6 +577,7 @@ static void null_nvm_unregister(struct nullb *nullb)
#else
static int null_nvm_register(struct nullb *nullb)
{
	pr_err("null_blk: CONFIG_NVM needs to be enabled for LightNVM\n");
	return -EINVAL;
}
static void null_nvm_unregister(struct nullb *nullb) {}