OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d63687
)
nvme.h: add an enum for cns values
author
Christoph Hellwig
<hch@lst.de>
Fri, 30 Sep 2016 11:51:08 +0000
(13:51 +0200)
committer
Jens Axboe
<axboe@fb.com>
Wed, 19 Oct 2016 17:36:22 +0000
(11:36 -0600)
Ported over from nvme-cli.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Gabriel Krisman Bertazi <krisman@linux.vnet.ibm.com>
Reviewed-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
include/linux/nvme.h
patch
|
blob
|
history
diff --git
a/include/linux/nvme.h
b/include/linux/nvme.h
index
d31ff2d
..
fc3c242
100644
(file)
--- a/
include/linux/nvme.h
+++ b/
include/linux/nvme.h
@@
-282,6
+282,16
@@
struct nvme_id_ns {
};
enum {
+ NVME_ID_CNS_NS = 0x00,
+ NVME_ID_CNS_CTRL = 0x01,
+ NVME_ID_CNS_NS_ACTIVE_LIST = 0x02,
+ NVME_ID_CNS_NS_PRESENT_LIST = 0x10,
+ NVME_ID_CNS_NS_PRESENT = 0x11,
+ NVME_ID_CNS_CTRL_NS_LIST = 0x12,
+ NVME_ID_CNS_CTRL_LIST = 0x13,
+};
+
+enum {
NVME_NS_FEAT_THIN = 1 << 0,
NVME_NS_FLBAS_LBA_MASK = 0xf,
NVME_NS_FLBAS_META_EXT = 0x10,