summaryrefslogtreecommitdiffstats
path: root/sys/ufs
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1999-08-25 12:24:39 +0000
committerphk <phk@FreeBSD.org>1999-08-25 12:24:39 +0000
commitea55d634757e3bbadb6525c31e5cb18f4f05ad53 (patch)
treebf5db0228b3f8aba1534aff880eed69f71082a05 /sys/ufs
parent8bfe025139b1ec3d8cbe77369f343a2dbd6e5702 (diff)
downloadFreeBSD-src-ea55d634757e3bbadb6525c31e5cb18f4f05ad53.zip
FreeBSD-src-ea55d634757e3bbadb6525c31e5cb18f4f05ad53.tar.gz
Introduce vn_isdisk(struct vnode *vp) function, and use it to test for diskness.
Diffstat (limited to 'sys/ufs')
-rw-r--r--sys/ufs/ffs/ffs_vfsops.c8
1 files changed, 2 insertions, 6 deletions
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
OpenPOWER on IntegriCloud