summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMatias Bjørling <m@bjorling.me>2016-02-04 15:13:27 +0100
committerJens Axboe <axboe@fb.com>2016-02-04 17:19:45 +0100
commitbf64318564c43385ffc3d3dfedab5287bdf3dfdd (patch)
tree4ac3051e9a30f3628beea499cd88a7647c33e08a /include
parentlightnvm: check overflow and correct mlc pairs (diff)
downloadlinux-bf64318564c43385ffc3d3dfedab5287bdf3dfdd.tar.xz
linux-bf64318564c43385ffc3d3dfedab5287bdf3dfdd.zip
lightnvm: allow to force mm initialization
System block allows the device to initialize with its configured media manager. The system blocks is written to disk, and read again when media manager is determined. For this to work, the backend must store the data. Device drivers, such as null_blk, does not have any backend storage. This patch allows the media manager to be initialized without a storage backend. It also fix incorrect configuration of capabilities in null_blk, as it does not support get/set bad block interface. Signed-off-by: Matias Bjørling <m@bjorling.me> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/lightnvm.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/lightnvm.h b/include/linux/lightnvm.h
index d6750111e48e..2190419bdf0a 100644
--- a/include/linux/lightnvm.h
+++ b/include/linux/lightnvm.h
@@ -135,6 +135,10 @@ enum {
/* Memory types */
NVM_ID_FMTYPE_SLC = 0,
NVM_ID_FMTYPE_MLC = 1,
+
+ /* Device capabilities */
+ NVM_ID_DCAP_BBLKMGMT = 0x1,
+ NVM_UD_DCAP_ECC = 0x2,
};
struct nvm_id_lp_mlc {