[PATCH] NVMe: Update SCSI Inquiry VPD 83 translation
Zakaria Abushima (zabushima)
zabushima at micron.com
Wed Dec 3 03:41:53 PST 2014
Hi Guys,
Off the topic, I have read that namespace in nvme is equivalent to SCSI LUN
So how can I write application to create name spaces up to 32 from the userspace.
In other word is there any application to write SCSI LUN from userspace,
Also, it says that creating name space is a vendor specific ? how can the vendor find out the way to create a namespace ?
Any explanation or clarification ?
Please guide me because I'm completely lost.
Zakaria.
System Architect Intern at Micron.
-----Original Message-----
From: Linux-nvme [mailto:linux-nvme-bounces at lists.infradead.org] On Behalf Of Matthew Wilcox
Sent: 02 December 2014 20:50
To: Keith Busch
Cc: linux-nvme at lists.infradead.org
Subject: Re: [PATCH] NVMe: Update SCSI Inquiry VPD 83 translation
On Tue, Dec 02, 2014 at 12:56:16PM -0700, Keith Busch wrote:
> + if (readl(&dev->bar->vs) >= 0x10100) {
I think we want an NVME_VERSION() macro that maybe looks something like this:
#define NVME_VERSION(major, minor) (((major) << 16) | ((minor) << 8))
Then you can make this:
if (readl(&dev->bar->vs) >= NVME_VERSION(1, 1))
What do you think?
_______________________________________________
Linux-nvme mailing list
Linux-nvme at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-nvme
More information about the Linux-nvme
mailing list