Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/amiga/amiga use RAW_PART to trigger read of disklab...



details:   https://anonhg.NetBSD.org/src/rev/430f29fe657d
branches:  trunk
changeset: 331783:430f29fe657d
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Sun Aug 24 12:18:21 2014 +0000

description:
use RAW_PART to trigger read of disklabel, other units might by busy due
to discovered wedges.

diffstat:

 sys/arch/amiga/amiga/autoconf.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (34 lines):

diff -r de7edfd326da -r 430f29fe657d sys/arch/amiga/amiga/autoconf.c
--- a/sys/arch/amiga/amiga/autoconf.c   Sun Aug 24 11:52:45 2014 +0000
+++ b/sys/arch/amiga/amiga/autoconf.c   Sun Aug 24 12:18:21 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: autoconf.c,v 1.116 2013/12/26 20:38:11 rkujawa Exp $   */
+/*     $NetBSD: autoconf.c,v 1.117 2014/08/24 12:18:21 mlelstv Exp $   */
 
 /*
  * Copyright (c) 1994 Christian E. Hopps
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.116 2013/12/26 20:38:11 rkujawa Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.117 2014/08/24 12:18:21 mlelstv Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -481,11 +481,11 @@
                        maj = bdevsw_lookup_major(bdp);
 
                        /* Open disk; forces read of disklabel. */
-                       if ((*bdp->d_open)(MAKEDISKDEV(maj,
-                           unit, 0), FREAD|FNONBLOCK, 0, &lwp0))
+                       if ((*bdp->d_open)(MAKEDISKDEV(maj, unit, RAW_PART),
+                               FREAD|FNONBLOCK, 0, &lwp0))
                                continue;
-                       (void)(*bdp->d_close)(MAKEDISKDEV(maj,
-                           unit, 0), FREAD|FNONBLOCK, 0, &lwp0);
+                       (void)(*bdp->d_close)(MAKEDISKDEV(maj, unit, RAW_PART),
+                               FREAD|FNONBLOCK, 0, &lwp0);
 
                        pp = &dkp->dk_label->d_partitions[0];
                        if (pp->p_size != 0 && pp->p_fstype == FS_BSDFFS) {



Home | Main Index | Thread Index | Old Index