diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2006-08-27 22:12:11 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2006-08-27 22:12:11 +0000 |
commit | 8aa3d0d143ac307dbaf8c731da9d982341db83fd (patch) | |
tree | 9be06f8fb4bcffae09726cb3a55dc0508fbd8e9f /sys/dev/ic/ciss.c | |
parent | b2dfd0544bf79106247b180f056df3a37d3866ff (diff) |
display proper volume device name in the volume line (; krw@ testing
Diffstat (limited to 'sys/dev/ic/ciss.c')
-rw-r--r-- | sys/dev/ic/ciss.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/sys/dev/ic/ciss.c b/sys/dev/ic/ciss.c index 9ae3404c4cd..64516a044e9 100644 --- a/sys/dev/ic/ciss.c +++ b/sys/dev/ic/ciss.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ciss.c,v 1.15 2006/08/27 20:51:09 mickey Exp $ */ +/* $OpenBSD: ciss.c,v 1.16 2006/08/27 22:12:10 mickey Exp $ */ /* * Copyright (c) 2005,2006 Michael Shalayeff @@ -419,9 +419,12 @@ ciss_attach(struct ciss_softc *sc) sc->sensors[i].status = SENSOR_S_UNKNOWN; strlcpy(sc->sensors[i].device, sc->sc_dev.dv_xname, sizeof(sc->sensors[i].device)); - strlcpy(sc->sensors[i].desc, - ((struct device *)scsibus->sc_link[i][0]->device_softc)->dv_xname, + strlcpy(sc->sensors[i].desc, ((struct device *) + scsibus->sc_link[i][0]->device_softc)->dv_xname, sizeof(sc->sensors[i].desc)); + strlcpy(sc->sc_lds[i]->xname, ((struct device *) + scsibus->sc_link[i][0]->device_softc)->dv_xname, + sizeof(sc->sc_lds[i]->xname)); } if (sensor_task_register(sc, ciss_sensors, 10)) { for (i = sc->maxunits; i--; ) @@ -1051,7 +1054,7 @@ ciss_ioctl(struct device *dev, u_long cmd, caddr_t addr) bv->bv_size = blks * (u_quad_t)letoh16(ldid->blksize); bv->bv_level = ciss_level[ldid->type]; bv->bv_nodisk = ldp->ndrives; - strlcpy(bv->bv_dev, ldid->label, sizeof(bv->bv_dev)); + strlcpy(bv->bv_dev, ldp->xname, sizeof(bv->bv_dev)); strlcpy(bv->bv_vendor, "CISS", sizeof(bv->bv_vendor)); ldstat = sc->scratch; bzero(ldstat, sizeof(*ldstat)); |