From ea55d634757e3bbadb6525c31e5cb18f4f05ad53 Mon Sep 17 00:00:00 2001 From: phk Date: Wed, 25 Aug 1999 12:24:39 +0000 Subject: Introduce vn_isdisk(struct vnode *vp) function, and use it to test for diskness. --- sys/ufs/ffs/ffs_vfsops.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'sys/ufs') diff --git a/sys/ufs/ffs/ffs_vfsops.c b/sys/ufs/ffs/ffs_vfsops.c index 0f249e4..37c82cc 100644 --- a/sys/ufs/ffs/ffs_vfsops.c +++ b/sys/ufs/ffs/ffs_vfsops.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)ffs_vfsops.c 8.31 (Berkeley) 5/20/95 - * $Id: ffs_vfsops.c,v 1.101 1999/08/08 18:43:01 phk Exp $ + * $Id: ffs_vfsops.c,v 1.102 1999/08/13 10:29:33 phk Exp $ */ #include "opt_quota.h" @@ -284,14 +284,10 @@ ffs_mount( mp, path, data, ndp, p) devvp = ndp->ni_vp; - if (devvp->v_type != VBLK) { + if (!vn_isdisk(devvp)) { err = ENOTBLK; goto error_2; } - if (devsw(devvp->v_rdev) == NULL) { - err = ENXIO; - goto error_2; - } /* * If mount by non-root, then verify that user has necessary -- cgit v1.1