Source-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/src/rev/fbd627c389ad
branches:  gehenna-devsw
changeset: 527032:fbd627c389ad
user:      gehenna <gehenna%NetBSD.org@localhost>
date:      Thu May 16 03:51:23 2002 +0000

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

diffstat:

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

diffs (35 lines):

diff -r 5f2b29b2e8fb -r fbd627c389ad sys/ntfs/ntfs_vfsops.c
--- a/sys/ntfs/ntfs_vfsops.c    Thu May 16 03:48:06 2002 +0000
+++ b/sys/ntfs/ntfs_vfsops.c    Thu May 16 03:51:23 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ntfs_vfsops.c,v 1.40 2001/12/18 07:51:16 chs Exp $     */
+/*     $NetBSD: ntfs_vfsops.c,v 1.40.8.1 2002/05/16 03:51:23 gehenna Exp $     */
 
 /*-
  * Copyright (c) 1998, 1999 Semen Ustimenko
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ntfs_vfsops.c,v 1.40 2001/12/18 07:51:16 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ntfs_vfsops.c,v 1.40.8.1 2002/05/16 03:51:23 gehenna Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -43,6 +43,7 @@
 #include <sys/malloc.h>
 #include <sys/systm.h>
 #include <sys/device.h>
+#include <sys/conf.h>
 
 #if defined(__NetBSD__)
 #include <uvm/uvm_extern.h>
@@ -337,7 +338,7 @@
 #ifdef __FreeBSD__
        if (bdevsw(devvp->v_rdev) == NULL) {
 #else
-       if (major(devvp->v_rdev) >= nblkdev) {
+       if (bdevsw_lookup(devvp->v_rdev) == NULL) {
 #endif
                err = ENXIO;
                goto error_2;



Home | Main Index | Thread Index | Old Index