aboutsummaryrefslogtreecommitdiffstats
path: root/sys/cam/nvme/nvme_da.c
diff options
context:
space:
mode:
authorAlexander Motin <mav@FreeBSD.org>2017-01-12 08:53:10 +0000
committerAlexander Motin <mav@FreeBSD.org>2017-01-12 08:53:10 +0000
commit17160457b41ff26b4384d8f82ed176a2844eb272 (patch)
tree48ae231610d482fa1a51e43afd4d73e3b399380a /sys/cam/nvme/nvme_da.c
parent9527fa4f663fa848cff1018f5c92bcccfc2adeee (diff)
downloadsrc-17160457b41ff26b4384d8f82ed176a2844eb272.tar.gz
src-17160457b41ff26b4384d8f82ed176a2844eb272.zip
Report random flash storage as non-rotating to GEOM_DISK.
While doing it, introduce respective constants in geom_disk.h. MFC after: 1 week
Notes
Notes: svn path=/head/; revision=311971
Diffstat (limited to 'sys/cam/nvme/nvme_da.c')
-rw-r--r--sys/cam/nvme/nvme_da.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/cam/nvme/nvme_da.c b/sys/cam/nvme/nvme_da.c
index 5e316c365295..1aa9954747a3 100644
--- a/sys/cam/nvme/nvme_da.c
+++ b/sys/cam/nvme/nvme_da.c
@@ -761,7 +761,7 @@ ndaregister(struct cam_periph *periph, void *arg)
MIN(sizeof(softc->disk->d_descr), sizeof(cd->mn)));
strlcpy(softc->disk->d_ident, cd->sn,
MIN(sizeof(softc->disk->d_ident), sizeof(cd->sn)));
- disk->d_rotation_rate = 0; /* Spinning rust need not apply */
+ disk->d_rotation_rate = DISK_RR_NON_ROTATING;
disk->d_open = ndaopen;
disk->d_close = ndaclose;
disk->d_strategy = ndastrategy;