]> www.infradead.org Git - users/jedix/linux-maple.git/commit
nfs/blocklayout: add support for NVMe
authorChristoph Hellwig <hch@lst.de>
Fri, 5 Jul 2024 16:51:41 +0000 (18:51 +0200)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Fri, 12 Jul 2024 15:35:50 +0000 (11:35 -0400)
commit3921ae0850a31f06791e3c5d8f628864b5ae088a
treea7b92d589c7a0295f04e77a75240566229cee9fc
parent7f296b25f2a6453bf052b03ed0676a18bee312a5
nfs/blocklayout: add support for NVMe

Look for the udev generated persistent device name for NVMe devices
in addition to the SCSI ones and the Redhat-specific device mapper
name.

This is the client side implementation of RFC 9561 "Using the Parallel
NFS (pNFS) SCSI Layout to Access Non-Volatile Memory Express (NVMe)
Storage Devices".

Note that the udev rules for nvme are a bit of a mess and udev will only
create a link for the uuid if the NVMe namespace has one, and not the
NGUID.  As the current RFCs don't support UUID based identifications this
means the layout can't be used on such namespaces out of the box.  A
small tweak to the udev rules can work around it, and as the real fix I
will submit a draft to the IETF NFSv4 working group to support UUID-based
identifiers for SCSI and NVMe.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Benjamin Coddington <bcodding@redhat.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/blocklayout/dev.c