1 /* $NetBSD: ntfs_vnops.c,v 1.23 1999/10/31 19:45:27 jdolecek Exp $ */
4 * Copyright (c) 1992, 1993
5 * The Regents of the University of California. All rights reserved.
7 * This code is derived from software contributed to Berkeley by
8 * John Heidemann of the UCLA Ficus project.
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions
13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer.
15 * 2. Redistributions in binary form must reproduce the above copyright
16 * notice, this list of conditions and the following disclaimer in the
17 * documentation and/or other materials provided with the distribution.
18 * 3. All advertising materials mentioning features or use of this software
19 * must display the following acknowledgement:
20 * This product includes software developed by the University of
21 * California, Berkeley and its contributors.
22 * 4. Neither the name of the University nor the names of its contributors
23 * may be used to endorse or promote products derived from this software
24 * without specific prior written permission.
26 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
27 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
30 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
38 * $FreeBSD: src/sys/ntfs/ntfs_vnops.c,v 1.9.2.4 2002/08/06 19:35:18 semenu Exp $
39 * $DragonFly: src/sys/vfs/ntfs/ntfs_vnops.c,v 1.23 2005/08/25 01:14:55 corecode Exp $
43 #include <sys/param.h>
44 #include <sys/systm.h>
45 #include <sys/kernel.h>
47 #include <sys/types.h>
49 #include <sys/vnode.h>
50 #include <sys/mount.h>
52 #include <sys/namei.h>
53 #include <sys/malloc.h>
55 #include <sys/dirent.h>
56 #include <machine/limits.h>
59 #include <vm/vm_param.h>
60 #if defined(__NetBSD__)
61 #include <vm/vm_prot.h>
63 #include <vm/vm_page.h>
64 #include <vm/vm_object.h>
65 #include <vm/vm_pager.h>
66 #if defined(__DragonFly__)
67 #include <vm/vnode_pager.h>
69 #include <vm/vm_extern.h>
71 #include <sys/sysctl.h>
73 /*#define NTFS_DEBUG 1*/
75 #include "ntfs_inode.h"
76 #include "ntfs_subr.h"
77 #if defined(__NetBSD__)
78 #include <miscfs/specfs/specdev.h>
79 #include <miscfs/genfs/genfs.h>
82 #include <sys/unistd.h> /* for pathconf(2) constants */
84 static int ntfs_read (struct vop_read_args *);
85 static int ntfs_write (struct vop_write_args *ap);
86 static int ntfs_getattr (struct vop_getattr_args *ap);
87 static int ntfs_inactive (struct vop_inactive_args *ap);
88 static int ntfs_print (struct vop_print_args *ap);
89 static int ntfs_reclaim (struct vop_reclaim_args *ap);
90 static int ntfs_strategy (struct vop_strategy_args *ap);
91 static int ntfs_access (struct vop_access_args *ap);
92 static int ntfs_open (struct vop_open_args *ap);
93 static int ntfs_close (struct vop_close_args *ap);
94 static int ntfs_readdir (struct vop_readdir_args *ap);
95 static int ntfs_lookup (struct vop_lookup_args *ap);
96 static int ntfs_bmap (struct vop_bmap_args *ap);
97 #if defined(__DragonFly__)
98 static int ntfs_getpages (struct vop_getpages_args *ap);
99 static int ntfs_putpages (struct vop_putpages_args *);
100 static int ntfs_fsync (struct vop_fsync_args *ap);
102 static int ntfs_bypass (struct vop_generic_args *);
104 static int ntfs_pathconf (void *);
106 int ntfs_prtactive = 1; /* 1 => print out reclaim of active vnodes */
108 #if defined(__DragonFly__)
110 ntfs_getpages(struct vop_getpages_args *ap)
112 return vnode_pager_generic_getpages(ap->a_vp, ap->a_m, ap->a_count,
117 ntfs_putpages(struct vop_putpages_args *ap)
119 return vnode_pager_generic_putpages(ap->a_vp, ap->a_m, ap->a_count,
120 ap->a_sync, ap->a_rtvals);
125 * This is a noop, simply returning what one has been given.
127 * ntfs_bmap(struct vnode *a_vp, daddr_t a_bn, struct vnode **a_vpp,
128 * daddr_t *a_bnp, int *a_runp, int *a_runb)
131 ntfs_bmap(struct vop_bmap_args *ap)
133 dprintf(("ntfs_bmap: vn: %p, blk: %d\n", ap->a_vp,(u_int32_t)ap->a_bn));
134 if (ap->a_vpp != NULL)
135 *ap->a_vpp = ap->a_vp;
136 if (ap->a_bnp != NULL)
137 *ap->a_bnp = ap->a_bn;
138 if (ap->a_runp != NULL)
140 #if !defined(__NetBSD__)
141 if (ap->a_runb != NULL)
148 * ntfs_read(struct vnode *a_vp, struct uio *a_uio, int a_ioflag,
149 * struct ucred *a_cred)
152 ntfs_read(struct vop_read_args *ap)
154 struct vnode *vp = ap->a_vp;
155 struct fnode *fp = VTOF(vp);
156 struct ntnode *ip = FTONT(fp);
157 struct uio *uio = ap->a_uio;
158 struct ntfsmount *ntmp = ip->i_mp;
161 int resid, off, toread;
164 dprintf(("ntfs_read: ino: %d, off: %d resid: %d, segflg: %d\n",ip->i_number,(u_int32_t)uio->uio_offset,uio->uio_resid,uio->uio_segflg));
166 dprintf(("ntfs_read: filesize: %d",(u_int32_t)fp->f_size));
168 /* don't allow reading after end of file */
169 if (uio->uio_offset > fp->f_size)
172 resid = min(uio->uio_resid, fp->f_size - uio->uio_offset);
174 dprintf((", resid: %d\n", resid));
178 cn = ntfs_btocn(uio->uio_offset);
179 off = ntfs_btocnoff(uio->uio_offset);
181 toread = min(off + resid, ntfs_cntob(1));
183 error = bread(vp, cn, ntfs_cntob(1), &bp);
189 error = uiomove(bp->b_data + off, toread - off, uio);
196 resid -= toread - off;
202 #if !defined(__DragonFly__)
205 * ntfs_bypass(struct vnodeop_desc *a_desc, ...)
208 ntfs_bypass(struct vop_generic_args *ap)
211 dprintf(("ntfs_bypass: %s\n", ap->a_desc->vdesc_name));
218 * ntfs_getattr(struct vnode *a_vp, struct vattr *a_vap, struct ucred *a_cred,
219 * struct thread *a_td)
222 ntfs_getattr(struct vop_getattr_args *ap)
224 struct vnode *vp = ap->a_vp;
225 struct fnode *fp = VTOF(vp);
226 struct ntnode *ip = FTONT(fp);
227 struct vattr *vap = ap->a_vap;
229 dprintf(("ntfs_getattr: %d, flags: %d\n",ip->i_number,ip->i_flag));
231 #if defined(__DragonFly__)
232 vap->va_fsid = dev2udev(ip->i_dev);
234 vap->va_fsid = ip->i_dev;
236 vap->va_fileid = ip->i_number;
237 vap->va_mode = ip->i_mp->ntm_mode;
238 vap->va_nlink = ip->i_nlink;
239 vap->va_uid = ip->i_mp->ntm_uid;
240 vap->va_gid = ip->i_mp->ntm_gid;
241 vap->va_rdev = 0; /* XXX UNODEV ? */
242 vap->va_size = fp->f_size;
243 vap->va_bytes = fp->f_allocated;
244 vap->va_atime = ntfs_nttimetounix(fp->f_times.t_access);
245 vap->va_mtime = ntfs_nttimetounix(fp->f_times.t_write);
246 vap->va_ctime = ntfs_nttimetounix(fp->f_times.t_create);
247 vap->va_flags = ip->i_flag;
249 vap->va_blocksize = ip->i_mp->ntm_spc * ip->i_mp->ntm_bps;
250 vap->va_type = vp->v_type;
257 * Last reference to an ntnode. If necessary, write or delete it.
259 * ntfs_inactive(struct vnode *a_vp)
262 ntfs_inactive(struct vop_inactive_args *ap)
264 struct vnode *vp = ap->a_vp;
266 struct ntnode *ip = VTONT(vp);
269 dprintf(("ntfs_inactive: vnode: %p, ntnode: %d\n", vp, ip->i_number));
271 if (ntfs_prtactive && vp->v_usecount != 0)
272 vprint("ntfs_inactive: pushing active", vp);
275 * XXX since we don't support any filesystem changes
276 * right now, nothing more needs to be done
282 * Reclaim an fnode/ntnode so that it can be used for other purposes.
284 * ntfs_reclaim(struct vnode *a_vp)
287 ntfs_reclaim(struct vop_reclaim_args *ap)
289 struct vnode *vp = ap->a_vp;
290 struct fnode *fp = VTOF(vp);
291 struct ntnode *ip = FTONT(fp);
294 dprintf(("ntfs_reclaim: vnode: %p, ntnode: %d\n", vp, ip->i_number));
296 if (ntfs_prtactive && vp->v_usecount != 0)
297 vprint("ntfs_reclaim: pushing active", vp);
299 if ((error = ntfs_ntget(ip)) != 0)
310 * ntfs_print(struct vnode *a_vp)
313 ntfs_print(struct vop_print_args *ap)
319 * Calculate the logical to physical mapping if not done already,
320 * then call the device strategy routine.
322 * ntfs_strategy(struct buf *a_bp)
325 ntfs_strategy(struct vop_strategy_args *ap)
327 struct buf *bp = ap->a_bp;
328 struct vnode *vp = bp->b_vp;
329 struct fnode *fp = VTOF(vp);
330 struct ntnode *ip = FTONT(fp);
331 struct ntfsmount *ntmp = ip->i_mp;
335 dprintf(("ntfs_strategy: offset: %d, blkno: %d, lblkno: %d\n",
336 (u_int32_t)bp->b_offset,(u_int32_t)bp->b_blkno,
337 (u_int32_t)bp->b_lblkno));
339 dprintf(("ntfs_strategy: blkno: %d, lblkno: %d\n",
340 (u_int32_t)bp->b_blkno,
341 (u_int32_t)bp->b_lblkno));
344 dprintf(("strategy: bcount: %d flags: 0x%lx\n",
345 (u_int32_t)bp->b_bcount,bp->b_flags));
347 if (bp->b_flags & B_READ) {
350 if (ntfs_cntob(bp->b_blkno) >= fp->f_size) {
354 toread = min(bp->b_bcount,
355 fp->f_size-ntfs_cntob(bp->b_blkno));
356 dprintf(("ntfs_strategy: toread: %d, fsize: %d\n",
357 toread,(u_int32_t)fp->f_size));
359 error = ntfs_readattr(ntmp, ip, fp->f_attrtype,
360 fp->f_attrname, ntfs_cntob(bp->b_blkno),
361 toread, bp->b_data, NULL);
364 printf("ntfs_strategy: ntfs_readattr failed\n");
366 bp->b_flags |= B_ERROR;
369 bzero(bp->b_data + toread, bp->b_bcount - toread);
375 if (ntfs_cntob(bp->b_blkno) + bp->b_bcount >= fp->f_size) {
376 printf("ntfs_strategy: CAN'T EXTEND FILE\n");
377 bp->b_error = error = EFBIG;
378 bp->b_flags |= B_ERROR;
380 towrite = min(bp->b_bcount,
381 fp->f_size-ntfs_cntob(bp->b_blkno));
382 dprintf(("ntfs_strategy: towrite: %d, fsize: %d\n",
383 towrite,(u_int32_t)fp->f_size));
385 error = ntfs_writeattr_plain(ntmp, ip, fp->f_attrtype,
386 fp->f_attrname, ntfs_cntob(bp->b_blkno),towrite,
387 bp->b_data, &tmp, NULL);
390 printf("ntfs_strategy: ntfs_writeattr fail\n");
392 bp->b_flags |= B_ERROR;
401 * ntfs_write(struct vnode *a_vp, struct uio *a_uio, int a_ioflag,
402 * struct ucred *a_cred)
405 ntfs_write(struct vop_write_args *ap)
407 struct vnode *vp = ap->a_vp;
408 struct fnode *fp = VTOF(vp);
409 struct ntnode *ip = FTONT(fp);
410 struct uio *uio = ap->a_uio;
411 struct ntfsmount *ntmp = ip->i_mp;
416 dprintf(("ntfs_write: ino: %d, off: %d resid: %d, segflg: %d\n",ip->i_number,(u_int32_t)uio->uio_offset,uio->uio_resid,uio->uio_segflg));
417 dprintf(("ntfs_write: filesize: %d",(u_int32_t)fp->f_size));
419 if (uio->uio_resid + uio->uio_offset > fp->f_size) {
420 printf("ntfs_write: CAN'T WRITE BEYOND END OF FILE\n");
424 towrite = min(uio->uio_resid, fp->f_size - uio->uio_offset);
426 dprintf((", towrite: %d\n",(u_int32_t)towrite));
428 error = ntfs_writeattr_plain(ntmp, ip, fp->f_attrtype,
429 fp->f_attrname, uio->uio_offset, towrite, NULL, &written, uio);
432 printf("ntfs_write: ntfs_writeattr failed: %d\n", error);
439 * ntfs_access(struct vnode *a_vp, int a_mode, struct ucred *a_cred,
440 * struct thread *a_td)
443 ntfs_access(struct vop_access_args *ap)
445 struct vnode *vp = ap->a_vp;
446 struct ntnode *ip = VTONT(vp);
447 struct ucred *cred = ap->a_cred;
448 mode_t mask, mode = ap->a_mode;
455 dprintf(("ntfs_access: %d\n",ip->i_number));
458 * Disallow write attempts on read-only file systems;
459 * unless the file is a socket, fifo, or a block or
460 * character device resident on the file system.
463 switch ((int)vp->v_type) {
467 if (vp->v_mount->mnt_flag & MNT_RDONLY)
470 if (error = getinoquota(ip))
477 /* Otherwise, user id 0 always gets access. */
478 if (cred->cr_uid == 0)
483 /* Otherwise, check the owner. */
484 if (cred->cr_uid == ip->i_mp->ntm_uid) {
491 return ((ip->i_mp->ntm_mode & mask) == mask ? 0 : EACCES);
494 /* Otherwise, check the groups. */
495 for (i = 0, gp = cred->cr_groups; i < cred->cr_ngroups; i++, gp++)
496 if (ip->i_mp->ntm_gid == *gp) {
503 return ((ip->i_mp->ntm_mode&mask) == mask ? 0 : EACCES);
506 /* Otherwise, check everyone else. */
513 return ((ip->i_mp->ntm_mode & mask) == mask ? 0 : EACCES);
521 * ntfs_open(struct vnode *a_vp, int a_mode, struct ucred *a_cred,
522 * struct thread *a_td)
526 ntfs_open(struct vop_open_args *ap)
529 struct vnode *vp = ap->a_vp;
530 struct ntnode *ip = VTONT(vp);
532 printf("ntfs_open: %d\n",ip->i_number);
536 * Files marked append-only must be opened for appending.
545 * Update the times on the inode.
547 * ntfs_close(struct vnode *a_vp, int a_fflag, struct ucred *a_cred,
548 * struct thread *a_td)
552 ntfs_close(struct vop_close_args *ap)
555 struct vnode *vp = ap->a_vp;
556 struct ntnode *ip = VTONT(vp);
558 printf("ntfs_close: %d\n",ip->i_number);
565 * ntfs_readdir(struct vnode *a_vp, struct uio *a_uio, struct ucred *a_cred,
566 * int *a_ncookies, u_int **cookies)
569 ntfs_readdir(struct vop_readdir_args *ap)
571 struct vnode *vp = ap->a_vp;
572 struct fnode *fp = VTOF(vp);
573 struct ntnode *ip = FTONT(fp);
574 struct uio *uio = ap->a_uio;
575 struct ntfsmount *ntmp = ip->i_mp;
577 u_int32_t faked = 0, num, off;
579 char convname[NTFS_MAXFILENAME + 1];
581 dprintf(("ntfs_readdir %d off: %d resid: %d\n",ip->i_number,(u_int32_t)uio->uio_offset,uio->uio_resid));
583 if (uio->uio_offset < 0 || uio->uio_offset > INT_MAX)
587 * uio->uio_offset carries the number of the entry
588 * where we should start returning dirents.
590 * We fake up "." if we're not reading the FS root
591 * and we always fake up "..".
593 * off contains the entry we are starting at,
594 * num increments while we are reading.
597 off = num = uio->uio_offset;
598 faked = (ip->i_number == NTFS_ROOTINO) ? 1 : 2;
600 /* Simulate . in every dir except ROOT */
601 if (ip->i_number != NTFS_ROOTINO && num == 0) {
602 if (vop_write_dirent(&error, uio, ip->i_number,
612 /* Simulate .. in every dir including ROOT */
613 if (num == faked - 1) {
614 /* XXX NTFS_ROOTINO seems to be wrong here */
615 if (vop_write_dirent(&error, uio, NTFS_ROOTINO,
626 struct attr_indexentry *iep;
629 * num is the number of the entry we will return,
630 * but ntfs_ntreaddir takes the entry number of the
631 * ntfs directory listing, so subtract the faked
634 error = ntfs_ntreaddir(ntmp, fp, num - faked, &iep);
642 for (; !(iep->ie_flag & NTFS_IEFLAG_LAST);
643 iep = NTFS_NEXTREC(iep, struct attr_indexentry *))
645 if(!ntfs_isnamepermitted(ntmp,iep))
648 for (i=0; i < iep->ie_fnamelen; i++)
649 convname[i] = NTFS_U28(iep->ie_fname[i]);
652 if (vop_write_dirent(&error, uio, iep->ie_number,
653 (iep->ie_fflag & NTFS_FFLAG_DIR) ? DT_DIR : DT_REG,
654 iep->ie_fnamelen, convname))
657 dprintf(("ntfs_readdir: elem: %d, fname:[%s] type: %d, "
659 ncookies, convname, iep->ie_fnametype,
661 (iep->ie_fflag & NTFS_FFLAG_DIR) ?
673 uio->uio_offset = num;
675 dprintf(("ntfs_readdir: %d entries (%d bytes) read\n",
676 ncookies,(u_int)(uio->uio_offset - off)));
677 dprintf(("ntfs_readdir: off: %d resid: %d\n",
678 (u_int32_t)uio->uio_offset,uio->uio_resid));
680 if (!error && ap->a_ncookies != NULL) {
681 #if defined(__DragonFly__)
684 #else /* defined(__NetBSD__) */
689 ddprintf(("ntfs_readdir: %d cookies\n",ncookies));
690 if (uio->uio_segflg != UIO_SYSSPACE || uio->uio_iovcnt != 1)
691 panic("ntfs_readdir: unexpected uio from NFS server");
692 #if defined(__DragonFly__)
693 MALLOC(cookies, u_long *, ncookies * sizeof(u_long),
695 #else /* defined(__NetBSD__) */
696 MALLOC(cookies, off_t *, ncookies * sizeof(off_t),
703 *ap->a_ncookies = ncookies;
704 *ap->a_cookies = cookies;
708 *ap->a_eofflag = VTONT(ap->a_vp)->i_size <= uio->uio_offset;
714 * ntfs_lookup(struct vnode *a_dvp, struct vnode **a_vpp,
715 * struct componentname *a_cnp)
718 ntfs_lookup(struct vop_lookup_args *ap)
720 struct vnode *dvp = ap->a_dvp;
721 struct ntnode *dip = VTONT(dvp);
722 struct ntfsmount *ntmp = dip->i_mp;
723 struct componentname *cnp = ap->a_cnp;
725 int lockparent = cnp->cn_flags & CNP_LOCKPARENT;
727 int wantparent = cnp->cn_flags & (CNP_LOCKPARENT | CNP_WANTPARENT);
729 dprintf(("ntfs_lookup: \"%.*s\" (%ld bytes) in %d, lp: %d, wp: %d \n",
730 (int)cnp->cn_namelen, cnp->cn_nameptr, cnp->cn_namelen,
731 dip->i_number, lockparent, wantparent));
735 if (cnp->cn_namelen == 1 && cnp->cn_nameptr[0] == '.') {
736 dprintf(("ntfs_lookup: faking . directory in %d\n",
742 } else if (cnp->cn_flags & CNP_ISDOTDOT) {
745 dprintf(("ntfs_lookup: faking .. directory in %d\n",
748 error = ntfs_ntvattrget(ntmp, dip, NTFS_A_NAME, NULL, 0, &vap);
752 VOP__UNLOCK(dvp,0,cnp->cn_td);
753 cnp->cn_flags |= CNP_PDIRUNLOCK;
755 dprintf(("ntfs_lookup: parentdir: %d\n",
756 vap->va_a_name->n_pnumber));
757 error = VFS_VGET(ntmp->ntm_mountp,
758 vap->va_a_name->n_pnumber,ap->a_vpp);
759 ntfs_ntvattrrele(vap);
761 if (VN_LOCK(dvp,LK_EXCLUSIVE|LK_RETRY,cnp->cn_td)==0)
762 cnp->cn_flags &= ~CNP_PDIRUNLOCK;
767 error = VN_LOCK(dvp, LK_EXCLUSIVE, cnp->cn_td);
773 cnp->cn_flags &= ~CNP_PDIRUNLOCK;
776 error = ntfs_ntlookupfile(ntmp, dvp, cnp, ap->a_vpp);
778 dprintf(("ntfs_ntlookupfile: returned %d\n", error));
782 dprintf(("ntfs_lookup: found ino: %d\n",
783 VTONT(*ap->a_vpp)->i_number));
786 VOP__UNLOCK(dvp, 0, cnp->cn_td);
791 #if defined(__DragonFly__)
793 * Flush the blocks of a file to disk.
795 * This function is worthless for vnodes that represent directories. Maybe we
796 * could just do a sync if they try an fsync on a directory file.
798 * ntfs_fsync(struct vnode *a_vp, struct ucred *a_cred, int a_waitfor,
799 * struct thread *a_td)
802 ntfs_fsync(struct vop_fsync_args *ap)
809 * Return POSIX pathconf information applicable to NTFS filesystem
812 ntfs_pathconf(void *v)
814 struct vop_pathconf_args /* {
817 register_t *a_retval;
820 switch (ap->a_name) {
825 *ap->a_retval = NTFS_MAXFILENAME;
828 *ap->a_retval = PATH_MAX;
830 case _PC_CHOWN_RESTRICTED:
836 #if defined(__NetBSD__)
840 case _PC_FILESIZEBITS:
851 * Global vfs data structures
853 struct vnodeopv_entry_desc ntfs_vnodeop_entries[] = {
854 { &vop_default_desc, vop_defaultop },
856 { &vop_getattr_desc, (vnodeopv_entry_t)ntfs_getattr },
857 { &vop_inactive_desc, (vnodeopv_entry_t)ntfs_inactive },
858 { &vop_reclaim_desc, (vnodeopv_entry_t)ntfs_reclaim },
859 { &vop_print_desc, (vnodeopv_entry_t)ntfs_print },
860 { &vop_pathconf_desc, (vnodeopv_entry_t)ntfs_pathconf },
862 { &vop_islocked_desc, (vnodeopv_entry_t)vop_stdislocked },
863 { &vop_unlock_desc, (vnodeopv_entry_t)vop_stdunlock },
864 { &vop_lock_desc, (vnodeopv_entry_t)vop_stdlock },
865 { &vop_lookup_desc, (vnodeopv_entry_t)ntfs_lookup },
867 { &vop_access_desc, (vnodeopv_entry_t)ntfs_access },
868 { &vop_close_desc, (vnodeopv_entry_t)ntfs_close },
869 { &vop_open_desc, (vnodeopv_entry_t)ntfs_open },
870 { &vop_readdir_desc, (vnodeopv_entry_t)ntfs_readdir },
871 { &vop_fsync_desc, (vnodeopv_entry_t)ntfs_fsync },
873 { &vop_bmap_desc, (vnodeopv_entry_t)ntfs_bmap },
874 { &vop_getpages_desc, (vnodeopv_entry_t)ntfs_getpages },
875 { &vop_putpages_desc, (vnodeopv_entry_t)ntfs_putpages },
876 { &vop_strategy_desc, (vnodeopv_entry_t)ntfs_strategy },
877 { &vop_bwrite_desc, (vnodeopv_entry_t)vop_stdbwrite },
878 { &vop_read_desc, (vnodeopv_entry_t)ntfs_read },
879 { &vop_write_desc, (vnodeopv_entry_t)ntfs_write },