summaryrefslogtreecommitdiffstats
path: root/sys/isofs/cd9660
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/isofs/cd9660
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/isofs/cd9660')
-rw-r--r--sys/isofs/cd9660/cd9660_vfsops.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/isofs/cd9660/cd9660_vfsops.c b/sys/isofs/cd9660/cd9660_vfsops.c
index 2e007db..1dc080d 100644
--- a/sys/isofs/cd9660/cd9660_vfsops.c
+++ b/sys/isofs/cd9660/cd9660_vfsops.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)cd9660_vfsops.c 8.18 (Berkeley) 5/22/95
- * $Id: cd9660_vfsops.c,v 1.58 1999/08/13 10:29:18 phk Exp $
+ * $Id: cd9660_vfsops.c,v 1.59 1999/08/23 21:07:12 bde Exp $
*/
#include <sys/param.h>
@@ -220,14 +220,10 @@ cd9660_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;
- }
/*
* Verify that user has necessary permissions on the device,
OpenPOWER on IntegriCloud