lightnvm: add free and bad lun info to show luns

Add free block, used block, and bad block information to the show debug
interface. This information is used to debug how targets track blocks.

Also, change debug function name to make it more generic.

Signed-off-by: Javier Gonzalez <javier@cnexlabs.com>
Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
This commit is contained in:
Javier Gonzalez
2015-11-20 13:47:57 +01:00
committed by Jens Axboe
parent 0b59733b95
commit 2fde0e482d
3 changed files with 17 additions and 8 deletions

View File

@@ -544,7 +544,7 @@ static int nvm_configure_show(const char *val)
if (!dev->mt)
return 0;
dev->mt->free_blocks_print(dev);
dev->mt->lun_info_print(dev);
return 0;
}