Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic for BIOCDISK_NOVOL, when setting bd_disknovol=fal...



details:   https://anonhg.NetBSD.org/src/rev/0be46b960d01
branches:  trunk
changeset: 802710:0be46b960d01
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sun Sep 28 11:27:00 2014 +0000

description:
for BIOCDISK_NOVOL, when setting bd_disknovol=false, also set bv_volid

diffstat:

 sys/dev/ic/mpt_netbsd.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 52b7d38f7772 -r 0be46b960d01 sys/dev/ic/mpt_netbsd.c
--- a/sys/dev/ic/mpt_netbsd.c   Sun Sep 28 11:20:22 2014 +0000
+++ b/sys/dev/ic/mpt_netbsd.c   Sun Sep 28 11:27:00 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mpt_netbsd.c,v 1.30 2014/09/28 11:20:22 jmcneill Exp $ */
+/*     $NetBSD: mpt_netbsd.c,v 1.31 2014/09/28 11:27:00 jmcneill Exp $ */
 
 /*
  * Copyright (c) 2003 Wasabi Systems, Inc.
@@ -77,7 +77,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mpt_netbsd.c,v 1.30 2014/09/28 11:20:22 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mpt_netbsd.c,v 1.31 2014/09/28 11:27:00 jmcneill Exp $");
 
 #include "bio.h"
 
@@ -1999,6 +1999,7 @@
                        if (rvol0->PhysDisk[d].PhysDiskNum ==
                            ioc3->PhysDisk[bd->bd_diskid].PhysDiskNum) {
                                bd->bd_disknovol = false;
+                               bd->bd_volid = v;
                                break;
                        }
                }



Home | Main Index | Thread Index | Old Index