Date: Mon, 7 Aug 2017 21:12:43 +0000 (UTC) From: Warner Losh <imp@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r322199 - head/sys/cam/nvme Message-ID: <201708072112.v77LChcT001554@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: imp Date: Mon Aug 7 21:12:43 2017 New Revision: 322199 URL: https://svnweb.freebsd.org/changeset/base/322199 Log: 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 Modified: head/sys/cam/nvme/nvme_da.c Modified: head/sys/cam/nvme/nvme_da.c ============================================================================== --- head/sys/cam/nvme/nvme_da.c Mon Aug 7 21:12:38 2017 (r322198) +++ head/sys/cam/nvme/nvme_da.c Mon Aug 7 21:12:43 2017 (r322199) @@ -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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201708072112.v77LChcT001554>