diff options
author | Marco Peereboom <marco@cvs.openbsd.org> | 2007-03-20 02:48:23 +0000 |
---|---|---|
committer | Marco Peereboom <marco@cvs.openbsd.org> | 2007-03-20 02:48:23 +0000 |
commit | 4fb361555fcf43e72b6bdf72a64e1b1e2cf87513 (patch) | |
tree | cb7e03eea6287e50733f8ea9b9584ab0b968814b | |
parent | d0e0b27d4891e3f8e09d0406933551ec0e9a8c6b (diff) |
Fake out target id for bioc_disk.
-rw-r--r-- | sys/dev/softraid.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/softraid.c b/sys/dev/softraid.c index 8e7fa40bc8e..1a16932c8f1 100644 --- a/sys/dev/softraid.c +++ b/sys/dev/softraid.c @@ -1,4 +1,4 @@ -/* $OpenBSD: softraid.c,v 1.4 2007/03/19 22:33:15 dlg Exp $ */ +/* $OpenBSD: softraid.c,v 1.5 2007/03/20 02:48:22 marco Exp $ */ /* * Copyright (c) 2007 Marco Peereboom <marco@peereboom.us> * @@ -603,6 +603,7 @@ sr_ioctl_disk(struct sr_softc *sc, struct bioc_disk *bd) mc = sc->sc_dis[i]->sd_vol.sv_chunks[bd->bd_diskid]; bd->bd_status = mc->src_meta.scm_status; bd->bd_size = mc->src_meta.scm_size; + bd->bd_target = bd->bd_diskid; strlcpy(bd->bd_vendor, mc->src_meta.scm_devname, sizeof(bd->bd_vendor)); rv = 0; |