Source-Changes-HG archive

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

[src/gehenna-devsw]: src/sys/msdosfs Use devsw API for checking validity of m...



details:   https://anonhg.NetBSD.org/src/rev/c30e2589fe6b
branches:  gehenna-devsw
changeset: 527036:c30e2589fe6b
user:      gehenna <gehenna%NetBSD.org@localhost>
date:      Thu May 16 03:59:40 2002 +0000

description:
Use devsw API for checking validity of major number.

diffstat:

 sys/msdosfs/msdosfs_vfsops.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (35 lines):

diff -r b6d3da296432 -r c30e2589fe6b sys/msdosfs/msdosfs_vfsops.c
--- a/sys/msdosfs/msdosfs_vfsops.c      Thu May 16 03:58:47 2002 +0000
+++ b/sys/msdosfs/msdosfs_vfsops.c      Thu May 16 03:59:40 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: msdosfs_vfsops.c,v 1.81 2002/03/25 20:42:40 jdolecek Exp $     */
+/*     $NetBSD: msdosfs_vfsops.c,v 1.81.2.1 2002/05/16 03:59:40 gehenna Exp $  */
 
 /*-
  * Copyright (C) 1994, 1995, 1997 Wolfgang Solfrank.
@@ -48,7 +48,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: msdosfs_vfsops.c,v 1.81 2002/03/25 20:42:40 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: msdosfs_vfsops.c,v 1.81.2.1 2002/05/16 03:59:40 gehenna Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_quota.h"
@@ -71,6 +71,7 @@
 #include <sys/malloc.h>
 #include <sys/dirent.h>
 #include <sys/stat.h>
+#include <sys/conf.h>
 
 #include <msdosfs/bpb.h>
 #include <msdosfs/bootsect.h>
@@ -310,7 +311,7 @@
                vrele(devvp);
                return (ENOTBLK);
        }
-       if (major(devvp->v_rdev) >= nblkdev) {
+       if (bdevsw_lookup(devvp->v_rdev) == NULL) {
                vrele(devvp);
                return (ENXIO);
        }



Home | Main Index | Thread Index | Old Index