Skip to content

Commit 3921ae0

Browse files
Christoph Hellwigamschuma-ntap
authored andcommitted
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 <[email protected]> Reviewed-by: Sagi Grimberg <[email protected]> Reviewed-by: Benjamin Coddington <[email protected]> Signed-off-by: Anna Schumaker <[email protected]>
1 parent 7f296b2 commit 3921ae0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fs/nfs/blocklayout/dev.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,8 @@ bl_parse_scsi(struct nfs_server *server, struct pnfs_block_dev *d,
404404
bdev_file = bl_open_path(v, "dm-uuid-mpath-0x");
405405
if (IS_ERR(bdev_file))
406406
bdev_file = bl_open_path(v, "wwn-0x");
407+
if (IS_ERR(bdev_file))
408+
bdev_file = bl_open_path(v, "nvme-eui.");
407409
if (IS_ERR(bdev_file)) {
408410
pr_warn("pNFS: no device found for volume %*phN\n",
409411
v->scsi.designator_len, v->scsi.designator);

0 commit comments

Comments
 (0)