[PATCH 3/5] nvme.h: add an enum for cns values

Keith Busch keith.busch at intel.com
Fri Sep 30 08:19:13 PDT 2016


On Fri, Sep 30, 2016 at 01:51:08PM +0200, Christoph Hellwig wrote:
> Ported over from nvme-cli.
> 
> Signed-off-by: Christoph Hellwig <hch at lst.de>

Looks good.

Reviewed-by: Keith Busch <keith.busch at intel.com>

> ---
>  include/linux/nvme.h | 10 ++++++++++
>  1 file changed, 10 insertions(+)
> 
> diff --git a/include/linux/nvme.h b/include/linux/nvme.h
> index 30a4c00..f7b3e35 100644
> --- 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,
> -- 
> 2.1.4



More information about the Linux-nvme mailing list