diff options
author | Constantine Sapuntzakis <csapuntz@cvs.openbsd.org> | 2001-02-21 23:24:33 +0000 |
---|---|---|
committer | Constantine Sapuntzakis <csapuntz@cvs.openbsd.org> | 2001-02-21 23:24:33 +0000 |
commit | 33e6fbe33f4ec84f10016e81c87c7be89171378b (patch) | |
tree | 122cb8b58569496544bc77d618dec5e995a23b94 /sys/kern/vfs_subr.c | |
parent | d0a302227eeedfb62540337fcbc0741756591d7c (diff) |
Latest soft updates from FreeBSD/Kirk McKusick
Snapshot-related code has been commented out.
Diffstat (limited to 'sys/kern/vfs_subr.c')
-rw-r--r-- | sys/kern/vfs_subr.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index 0cb3e61cc4b..bee6b56c1ae 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_subr.c,v 1.48 2001/02/08 00:32:11 mickey Exp $ */ +/* $OpenBSD: vfs_subr.c,v 1.49 2001/02/21 23:24:30 csapuntz Exp $ */ /* $NetBSD: vfs_subr.c,v 1.53 1996/04/22 01:39:13 christos Exp $ */ /* @@ -2209,3 +2209,17 @@ vfs_unregister(vfs) return 0; } + +/* + * Check if vnode represents a disk device + */ +int +vn_isdisk(vp, errp) + struct vnode *vp; + int *errp; +{ + if (vp->v_type != VBLK && vp->v_type != VCHR) + return (0); + + return (1); +} |