From d45e16744f67ff80e8b5d575069d7571e0bdbf4b Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Mon, 7 Aug 2017 21:12:43 +0000 Subject: [PATCH] Add nvd alias to nda ndoes. All ndaX and ndaXpY nodes will appear as nvdX and nvdXpY as well (through symlinks in devfs via the normal disk aliasing mechanism in GEOM). Differential Revision: https://reviews.freebsd.org/D11873 --- sys/cam/nvme/nvme_da.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/cam/nvme/nvme_da.c b/sys/cam/nvme/nvme_da.c index a801730b9a8..0602e8b6f8d 100644 --- a/sys/cam/nvme/nvme_da.c +++ b/sys/cam/nvme/nvme_da.c @@ -808,6 +808,10 @@ ndaregister(struct cam_periph *periph, void *arg) DEVSTAT_ALL_SUPPORTED, DEVSTAT_TYPE_DIRECT | XPORT_DEVSTAT_TYPE(cpi.transport), DEVSTAT_PRIORITY_DISK); + /* + * Add alias for older nvd drives to ease transition. + */ + disk_add_alias(disk, "nvd"); /* * Acquire a reference to the periph before we register with GEOM.