lightnvm: add minor version to generic geometry
Separate the version between major and minor on the generic geometry and represent it through sysfs in the 2.0 path. The 1.2 path only shows the major version to preserve the existing user space interface. Signed-off-by: Javier González <javier@cnexlabs.com> Signed-off-by: Matias Bjørling <mb@lightnvm.io> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
committed by
Jens Axboe
parent
e46f4e4822
commit
3cb98f84d3
@@ -263,7 +263,8 @@ enum {
|
||||
/* Instance geometry */
|
||||
struct nvm_geo {
|
||||
/* device reported version */
|
||||
u8 ver_id;
|
||||
u8 major_ver_id;
|
||||
u8 minor_ver_id;
|
||||
|
||||
/* instance specific geometry */
|
||||
int nr_chnls;
|
||||
|
||||
Reference in New Issue
Block a user