Source-Changes-HG archive

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

[src/trunk]: src/sys/ntfs ntfs_mount(): there is no bdevsw() under NetBSD - t...



details:   https://anonhg.NetBSD.org/src/rev/1bc8bd69a4c5
branches:  trunk
changeset: 474924:1bc8bd69a4c5
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Mon Jul 26 14:35:19 1999 +0000

description:
ntfs_mount(): there is no bdevsw() under NetBSD - to check if passed
        block device is valid, just check if it's major is less than nblkdev
ntfs_mountfs(): dev2udev() not needed under NetBSD

diffstat:

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

diffs (34 lines):

diff -r aec671943ff5 -r 1bc8bd69a4c5 sys/ntfs/ntfs_vfsops.c
--- a/sys/ntfs/ntfs_vfsops.c    Mon Jul 26 14:02:30 1999 +0000
+++ b/sys/ntfs/ntfs_vfsops.c    Mon Jul 26 14:35:19 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ntfs_vfsops.c,v 1.4 1999/07/26 14:02:32 jdolecek Exp $ */
+/*     $NetBSD: ntfs_vfsops.c,v 1.5 1999/07/26 14:35:19 jdolecek Exp $ */
 
 /*-
  * Copyright (c) 1998, 1999 Semen Ustimenko
@@ -296,7 +296,11 @@
                err = ENOTBLK;
                goto error_2;
        }
+#ifdef __FreeBSD__
        if (bdevsw(devvp->v_rdev) == NULL) {
+#else
+       if (major(devvp->v_rdev) >= nblkdev) {
+#endif
                err = ENXIO;
                goto error_2;
        }
@@ -561,10 +565,11 @@
                vput(vp);
        }
 
+#if defined(__FreeBSD__)
        mp->mnt_stat.f_fsid.val[0] = dev2udev(dev);
-#if defined(__FreeBSD__)
        mp->mnt_stat.f_fsid.val[1] = mp->mnt_vfc->vfc_typenum;
 #else
+       mp->mnt_stat.f_fsid.val[0] = dev;
        mp->mnt_stat.f_fsid.val[1] = makefstype(MOUNT_NTFS);
 #endif
        mp->mnt_maxsymlinklen = 0;



Home | Main Index | Thread Index | Old Index