diff options
author | phk <phk@FreeBSD.org> | 1999-08-25 12:24:39 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1999-08-25 12:24:39 +0000 |
commit | ea55d634757e3bbadb6525c31e5cb18f4f05ad53 (patch) | |
tree | bf5db0228b3f8aba1534aff880eed69f71082a05 /sys/ntfs | |
parent | 8bfe025139b1ec3d8cbe77369f343a2dbd6e5702 (diff) | |
download | FreeBSD-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/ntfs')
-rw-r--r-- | sys/ntfs/ntfs_vfsops.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/ntfs/ntfs_vfsops.c b/sys/ntfs/ntfs_vfsops.c index 172460d..44877bd 100644 --- a/sys/ntfs/ntfs_vfsops.c +++ b/sys/ntfs/ntfs_vfsops.c @@ -25,7 +25,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: ntfs_vfsops.c,v 1.8 1999/08/08 18:42:58 phk Exp $ + * $Id: ntfs_vfsops.c,v 1.9 1999/08/13 10:29:29 phk Exp $ */ @@ -290,14 +290,10 @@ ntfs_mount ( 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 (mp->mnt_flag & MNT_UPDATE) { #if 0 /* |