From 4fb361555fcf43e72b6bdf72a64e1b1e2cf87513 Mon Sep 17 00:00:00 2001 From: Marco Peereboom Date: Tue, 20 Mar 2007 02:48:23 +0000 Subject: Fake out target id for bioc_disk. --- sys/dev/softraid.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys') 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 * @@ -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; -- cgit v1.2.3