]> git.baikalelectronics.ru Git - kernel.git/commit
lightnvm: print error when target is not found
authorMinwoo Im <minwoo.im.dev@gmail.com>
Thu, 5 Sep 2019 19:04:33 +0000 (21:04 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 5 Sep 2019 19:17:01 +0000 (13:17 -0600)
commita5d065a50796acdf285de4c61fa55cfe15400dfd
tree4094fd395e12e736ccf10d27b960934e667aa6d5
parentcd715634d2b80d39cff64060a685ad82c9b62bf8
lightnvm: print error when target is not found

If userspace requests target to be removed, nvm_remove_tgt() will
iterate the nvm_devices to find out the given target, but if not
found, then it should print out an error.

Signed-off-by: Minwoo Im <minwoo.im.dev@gmail.com>
Updated output string and patch description.
Signed-off-by: Matias Bjørling <mb@lightnvm.io>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/lightnvm/core.c