X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/blobdiff_plain/7540ab49b56b2851162f0d7ce45cf0fccd135bea..1c843a13b38e87670f8169e750b2406c3eb6e68e:/sys/vfs/ntfs/ntfs_vnops.c diff --git a/sys/vfs/ntfs/ntfs_vnops.c b/sys/vfs/ntfs/ntfs_vnops.c index a1cd8fd4ca..ff64f61d76 100644 --- a/sys/vfs/ntfs/ntfs_vnops.c +++ b/sys/vfs/ntfs/ntfs_vnops.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * $FreeBSD: src/sys/ntfs/ntfs_vnops.c,v 1.9.2.4 2002/08/06 19:35:18 semenu Exp $ - * $DragonFly: src/sys/vfs/ntfs/ntfs_vnops.c,v 1.27 2006/03/29 18:45:01 dillon Exp $ + * $DragonFly: src/sys/vfs/ntfs/ntfs_vnops.c,v 1.29 2006/04/07 06:38:33 dillon Exp $ * */ @@ -519,25 +519,7 @@ ntfs_access(struct vop_access_args *ap) static int ntfs_open(struct vop_open_args *ap) { - struct vnode *vp = ap->a_vp; -#if NTFS_DEBUG - struct ntnode *ip = VTONT(vp); - - printf("ntfs_open: %d\n",ip->i_number); -#endif - - /* - * We use the buffer cache, so files at least have to have a - * VM object. - */ - if (vp->v_type == VREG || vp->v_type == VDIR) - vinitvmio(vp); - - /* - * Files marked append-only must be opened for appending. - */ - - return (0); + return (vop_stdopen(ap)); } /* @@ -559,7 +541,7 @@ ntfs_close(struct vop_close_args *ap) printf("ntfs_close: %d\n",ip->i_number); #endif - return (0); + return (vop_stdclose(ap)); } /*