diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 1999-08-25 12:24:39 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1999-08-25 12:24:39 +0000 |
commit | 41d2e3e09ea3c2796feaf57a978acc3f8f6fe74a (patch) | |
tree | dd4e0641fd024a6e4dac3cd36a669ad725575295 /sys/msdosfs | |
parent | a431597b251954ad0c29f02685867f8799549d1d (diff) | |
download | src-41d2e3e09ea3c2796feaf57a978acc3f8f6fe74a.tar.gz src-41d2e3e09ea3c2796feaf57a978acc3f8f6fe74a.zip |
Introduce vn_isdisk(struct vnode *vp) function, and use it to test for diskness.
Notes
Notes:
svn path=/head/; revision=50347
Diffstat (limited to 'sys/msdosfs')
-rw-r--r-- | sys/msdosfs/msdosfs_vfsops.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/msdosfs/msdosfs_vfsops.c b/sys/msdosfs/msdosfs_vfsops.c index f8c739274423..adb5b5a0ebbf 100644 --- a/sys/msdosfs/msdosfs_vfsops.c +++ b/sys/msdosfs/msdosfs_vfsops.c @@ -1,4 +1,4 @@ -/* $Id: msdosfs_vfsops.c,v 1.47 1999/08/13 10:29:26 phk Exp $ */ +/* $Id: msdosfs_vfsops.c,v 1.48 1999/08/23 21:07:13 bde Exp $ */ /* $NetBSD: msdosfs_vfsops.c,v 1.51 1997/11/17 15:36:58 ws Exp $ */ /*- @@ -293,14 +293,10 @@ msdosfs_mount(mp, path, data, ndp, p) return (error); devvp = ndp->ni_vp; - if (devvp->v_type != VBLK) { + if (!vn_isdisk(devvp)) { vrele(devvp); return (ENOTBLK); } - if (devsw(devvp->v_rdev) == NULL) { - vrele(devvp); - return (ENXIO); - } /* * If mount by non-root, then verify that user has necessary * permissions on the device. |