aboutsummaryrefslogtreecommitdiffstats
path: root/sys/cam/nvme/nvme_da.c
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2017-08-07 21:12:43 +0000
committerWarner Losh <imp@FreeBSD.org>2017-08-07 21:12:43 +0000
commitd45e16744f67ff80e8b5d575069d7571e0bdbf4b (patch)
tree2146b4dd3c030286be302e19151df73da5ffb48d /sys/cam/nvme/nvme_da.c
parentd3517d306c02f7b38f03f0159fc8c8ec4c275f47 (diff)
downloadsrc-d45e16744f67ff80e8b5d575069d7571e0bdbf4b.tar.gz
src-d45e16744f67ff80e8b5d575069d7571e0bdbf4b.zip
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
Notes
Notes: svn path=/head/; revision=322199
Diffstat (limited to 'sys/cam/nvme/nvme_da.c')
-rw-r--r--sys/cam/nvme/nvme_da.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/cam/nvme/nvme_da.c b/sys/cam/nvme/nvme_da.c
index a801730b9a84..0602e8b6f8db 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.