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/4b267506e78d
branches:  trunk
changeset: 332568:4b267506e78d
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 865b1180d92b -r 4b267506e78d 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