[RFC PATCH] nvmet: Back namespace with files
Keith Busch
keith.busch at intel.com
Mon Mar 13 09:11:28 PDT 2017
On Mon, Mar 13, 2017 at 10:32:38AM +0200, Sagi Grimberg wrote:
> > Hm, implementation details aside for a second, isn't namespace management
> > more useful on fabrics than pci? It's like managing LUNs on a SAN,
> > but with spec defined commands.
>
> Not exactly, usually namespace/lun provisioning is something that a
> given host does not typically do or even aware of. Unlike in PCIe,
> in fabrics, the host does not really own "the" subsystem, it just owns
> a virtual subsystem that the target exposed for it.
>
> If we do support namespace management in the linux target, it'd need
> to be emulated somehow, obviously a host cannot simply add
> unprovisioned resources.
Yes, the RFC was light on details, and I'm probably getting ahead of
myself with the file-as-a-namespaces suggestion.
I'd like an NVMe subsystem to be provided a pool of storage that it
may dynamically carve into namespaces and attach to connected hosts as
needed. I also want hosts to do this using the spec defined Namespace
Management commands. That isn't all that unusual from what I hear.
This doesn't really require a filesystem. Maybe LVM is more appropriate,
but I think that'd require userspace to manage the LVs. Still, file backed
namespaces has uses if only for testing purposes, like LIO's FILEIO.
More information about the Linux-nvme
mailing list