|
|
| version 1.10, 2004/02/05 21:03:37 | version 1.11, 2004/04/20 19:59:30 |
|---|---|
| Line 106 int ntfs_prtactive = 1; /* 1 => print ou | Line 106 int ntfs_prtactive = 1; /* 1 => print ou |
| #if defined(__DragonFly__) | #if defined(__DragonFly__) |
| int | int |
| ntfs_getpages(ap) | ntfs_getpages(struct vop_getpages_args *ap) |
| struct vop_getpages_args *ap; | |
| { | { |
| return vnode_pager_generic_getpages(ap->a_vp, ap->a_m, ap->a_count, | return vnode_pager_generic_getpages(ap->a_vp, ap->a_m, ap->a_count, |
| ap->a_reqpage); | ap->a_reqpage); |
| } | } |
| int | int |
| ntfs_putpages(ap) | ntfs_putpages(struct vop_putpages_args *ap) |
| struct vop_putpages_args *ap; | |
| { | { |
| return vnode_pager_generic_putpages(ap->a_vp, ap->a_m, ap->a_count, | return vnode_pager_generic_putpages(ap->a_vp, ap->a_m, ap->a_count, |
| ap->a_sync, ap->a_rtvals); | ap->a_sync, ap->a_rtvals); |
| Line 124 ntfs_putpages(ap) | Line 122 ntfs_putpages(ap) |
| /* | /* |
| * This is a noop, simply returning what one has been given. | * This is a noop, simply returning what one has been given. |
| * | |
| * ntfs_bmap(struct vnode *a_vp, daddr_t a_bn, struct vnode **a_vpp, | |
| * daddr_t *a_bnp, int *a_runp, int *a_runb) | |
| */ | */ |
| int | int |
| ntfs_bmap(ap) | ntfs_bmap(struct vop_bmap_args *ap) |
| struct vop_bmap_args /* { | |
| struct vnode *a_vp; | |
| daddr_t a_bn; | |
| struct vnode **a_vpp; | |
| daddr_t *a_bnp; | |
| int *a_runp; | |
| int *a_runb; | |
| } */ *ap; | |
| { | { |
| dprintf(("ntfs_bmap: vn: %p, blk: %d\n", ap->a_vp,(u_int32_t)ap->a_bn)); | dprintf(("ntfs_bmap: vn: %p, blk: %d\n", ap->a_vp,(u_int32_t)ap->a_bn)); |
| if (ap->a_vpp != NULL) | if (ap->a_vpp != NULL) |
| Line 150 ntfs_bmap(ap) | Line 143 ntfs_bmap(ap) |
| return (0); | return (0); |
| } | } |
| /* | |
| * ntfs_read(struct vnode *a_vp, struct uio *a_uio, int a_ioflag, | |
| * struct ucred *a_cred) | |
| */ | |
| static int | static int |
| ntfs_read(ap) | ntfs_read(struct vop_read_args *ap) |
| struct vop_read_args /* { | |
| struct vnode *a_vp; | |
| struct uio *a_uio; | |
| int a_ioflag; | |
| struct ucred *a_cred; | |
| } */ *ap; | |
| { | { |
| struct vnode *vp = ap->a_vp; | struct vnode *vp = ap->a_vp; |
| struct fnode *fp = VTOF(vp); | struct fnode *fp = VTOF(vp); |
| Line 209 ntfs_read(ap) | Line 200 ntfs_read(ap) |
| #if !defined(__DragonFly__) | #if !defined(__DragonFly__) |
| /* | |
| * ntfs_bypass(struct vnodeop_desc *a_desc, ...) | |
| */ | |
| static int | static int |
| ntfs_bypass(ap) | ntfs_bypass(struct vop_generic_args *ap) |
| struct vop_generic_args /* { | |
| struct vnodeop_desc *a_desc; | |
| <other random data follows, presumably> | |
| } */ *ap; | |
| { | { |
| int error = ENOTTY; | int error = ENOTTY; |
| dprintf(("ntfs_bypass: %s\n", ap->a_desc->vdesc_name)); | dprintf(("ntfs_bypass: %s\n", ap->a_desc->vdesc_name)); |
| Line 223 ntfs_bypass(ap) | Line 213 ntfs_bypass(ap) |
| #endif | #endif |
| /* | |
| * ntfs_getattr(struct vnode *a_vp, struct vattr *a_vap, struct ucred *a_cred, | |
| * struct thread *a_td) | |
| */ | |
| static int | static int |
| ntfs_getattr(ap) | ntfs_getattr(struct vop_getattr_args *ap) |
| struct vop_getattr_args /* { | |
| struct vnode *a_vp; | |
| struct vattr *a_vap; | |
| struct ucred *a_cred; | |
| struct thread *a_td; | |
| } */ *ap; | |
| { | { |
| struct vnode *vp = ap->a_vp; | struct vnode *vp = ap->a_vp; |
| struct fnode *fp = VTOF(vp); | struct fnode *fp = VTOF(vp); |
| Line 266 ntfs_getattr(ap) | Line 254 ntfs_getattr(ap) |
| /* | /* |
| * Last reference to an ntnode. If necessary, write or delete it. | * Last reference to an ntnode. If necessary, write or delete it. |
| * | |
| * ntfs_inactive(struct vnode *a_vp) | |
| */ | */ |
| int | int |
| ntfs_inactive(ap) | ntfs_inactive(struct vop_inactive_args *ap) |
| struct vop_inactive_args /* { | |
| struct vnode *a_vp; | |
| } */ *ap; | |
| { | { |
| struct vnode *vp = ap->a_vp; | struct vnode *vp = ap->a_vp; |
| #ifdef NTFS_DEBUG | #ifdef NTFS_DEBUG |
| Line 293 ntfs_inactive(ap) | Line 280 ntfs_inactive(ap) |
| /* | /* |
| * Reclaim an fnode/ntnode so that it can be used for other purposes. | * Reclaim an fnode/ntnode so that it can be used for other purposes. |
| * | |
| * ntfs_reclaim(struct vnode *a_vp) | |
| */ | */ |
| int | int |
| ntfs_reclaim(ap) | ntfs_reclaim(struct vop_reclaim_args *ap) |
| struct vop_reclaim_args /* { | |
| struct vnode *a_vp; | |
| } */ *ap; | |
| { | { |
| struct vnode *vp = ap->a_vp; | struct vnode *vp = ap->a_vp; |
| struct fnode *fp = VTOF(vp); | struct fnode *fp = VTOF(vp); |
| Line 323 ntfs_reclaim(ap) | Line 309 ntfs_reclaim(ap) |
| return (0); | return (0); |
| } | } |
| /* | |
| * ntfs_print(struct vnode *a_vp) | |
| */ | |
| static int | static int |
| ntfs_print(ap) | ntfs_print(struct vop_print_args *ap) |
| struct vop_print_args /* { | |
| struct vnode *a_vp; | |
| } */ *ap; | |
| { | { |
| return (0); | return (0); |
| } | } |
| Line 335 ntfs_print(ap) | Line 321 ntfs_print(ap) |
| /* | /* |
| * Calculate the logical to physical mapping if not done already, | * Calculate the logical to physical mapping if not done already, |
| * then call the device strategy routine. | * then call the device strategy routine. |
| * | |
| * ntfs_strategy(struct buf *a_bp) | |
| */ | */ |
| int | int |
| ntfs_strategy(ap) | ntfs_strategy(struct vop_strategy_args *ap) |
| struct vop_strategy_args /* { | |
| struct buf *a_bp; | |
| } */ *ap; | |
| { | { |
| struct buf *bp = ap->a_bp; | struct buf *bp = ap->a_bp; |
| struct vnode *vp = bp->b_vp; | struct vnode *vp = bp->b_vp; |
| Line 415 ntfs_strategy(ap) | Line 400 ntfs_strategy(ap) |
| return (error); | return (error); |
| } | } |
| /* | |
| * ntfs_write(struct vnode *a_vp, struct uio *a_uio, int a_ioflag, | |
| * struct ucred *a_cred) | |
| */ | |
| static int | static int |
| ntfs_write(ap) | ntfs_write(struct vop_write_args *ap) |
| struct vop_write_args /* { | |
| struct vnode *a_vp; | |
| struct uio *a_uio; | |
| int a_ioflag; | |
| struct ucred *a_cred; | |
| } */ *ap; | |
| { | { |
| struct vnode *vp = ap->a_vp; | struct vnode *vp = ap->a_vp; |
| struct fnode *fp = VTOF(vp); | struct fnode *fp = VTOF(vp); |
| Line 455 ntfs_write(ap) | Line 438 ntfs_write(ap) |
| return (error); | return (error); |
| } | } |
| /* | |
| * ntfs_access(struct vnode *a_vp, int a_mode, struct ucred *a_cred, | |
| * struct thread *a_td) | |
| */ | |
| int | int |
| ntfs_access(ap) | ntfs_access(struct vop_access_args *ap) |
| struct vop_access_args /* { | |
| struct vnode *a_vp; | |
| int a_mode; | |
| struct ucred *a_cred; | |
| struct thread *a_td; | |
| } */ *ap; | |
| { | { |
| struct vnode *vp = ap->a_vp; | struct vnode *vp = ap->a_vp; |
| struct ntnode *ip = VTONT(vp); | struct ntnode *ip = VTONT(vp); |
| Line 539 ntfs_access(ap) | Line 520 ntfs_access(ap) |
| * Open called. | * Open called. |
| * | * |
| * Nothing to do. | * Nothing to do. |
| * | |
| * ntfs_open(struct vnode *a_vp, int a_mode, struct ucred *a_cred, | |
| * struct thread *a_td) | |
| */ | */ |
| /* ARGSUSED */ | /* ARGSUSED */ |
| static int | static int |
| ntfs_open(ap) | ntfs_open(struct vop_open_args *ap) |
| struct vop_open_args /* { | |
| struct vnode *a_vp; | |
| int a_mode; | |
| struct ucred *a_cred; | |
| struct thread *a_td; | |
| } */ *ap; | |
| { | { |
| #if NTFS_DEBUG | #if NTFS_DEBUG |
| struct vnode *vp = ap->a_vp; | struct vnode *vp = ap->a_vp; |
| Line 568 ntfs_open(ap) | Line 546 ntfs_open(ap) |
| * Close called. | * Close called. |
| * | * |
| * Update the times on the inode. | * Update the times on the inode. |
| * | |
| * ntfs_close(struct vnode *a_vp, int a_fflag, struct ucred *a_cred, | |
| * struct thread *a_td) | |
| */ | */ |
| /* ARGSUSED */ | /* ARGSUSED */ |
| static int | static int |
| ntfs_close(ap) | ntfs_close(struct vop_close_args *ap) |
| struct vop_close_args /* { | |
| struct vnode *a_vp; | |
| int a_fflag; | |
| struct ucred *a_cred; | |
| struct thread *a_td; | |
| } */ *ap; | |
| { | { |
| #if NTFS_DEBUG | #if NTFS_DEBUG |
| struct vnode *vp = ap->a_vp; | struct vnode *vp = ap->a_vp; |
| Line 589 ntfs_close(ap) | Line 564 ntfs_close(ap) |
| return (0); | return (0); |
| } | } |
| /* | |
| * ntfs_readdir(struct vnode *a_vp, struct uio *a_uio, struct ucred *a_cred, | |
| * int *a_ncookies, u_int **cookies) | |
| */ | |
| int | int |
| ntfs_readdir(ap) | ntfs_readdir(struct vop_readdir_args *ap) |
| struct vop_readdir_args /* { | |
| struct vnode *a_vp; | |
| struct uio *a_uio; | |
| struct ucred *a_cred; | |
| int *a_ncookies; | |
| u_int **cookies; | |
| } */ *ap; | |
| { | { |
| struct vnode *vp = ap->a_vp; | struct vnode *vp = ap->a_vp; |
| struct fnode *fp = VTOF(vp); | struct fnode *fp = VTOF(vp); |
| Line 728 ntfs_readdir(ap) | Line 700 ntfs_readdir(ap) |
| return (error); | return (error); |
| } | } |
| /* | |
| * ntfs_lookup(struct vnode *a_dvp, struct vnode **a_vpp, | |
| * struct componentname *a_cnp) | |
| */ | |
| int | int |
| ntfs_lookup(ap) | ntfs_lookup(struct vop_lookup_args *ap) |
| struct vop_lookup_args /* { | |
| struct vnode *a_dvp; | |
| struct vnode **a_vpp; | |
| struct componentname *a_cnp; | |
| } */ *ap; | |
| { | { |
| struct vnode *dvp = ap->a_dvp; | struct vnode *dvp = ap->a_dvp; |
| struct ntnode *dip = VTONT(dvp); | struct ntnode *dip = VTONT(dvp); |
| Line 837 ntfs_lookup(ap) | Line 808 ntfs_lookup(ap) |
| * | * |
| * This function is worthless for vnodes that represent directories. Maybe we | * This function is worthless for vnodes that represent directories. Maybe we |
| * could just do a sync if they try an fsync on a directory file. | * could just do a sync if they try an fsync on a directory file. |
| * | |
| * ntfs_fsync(struct vnode *a_vp, struct ucred *a_cred, int a_waitfor, | |
| * struct thread *a_td) | |
| */ | */ |
| static int | static int |
| ntfs_fsync(ap) | ntfs_fsync(struct vop_fsync_args *ap) |
| struct vop_fsync_args /* { | |
| struct vnode *a_vp; | |
| struct ucred *a_cred; | |
| int a_waitfor; | |
| struct thread *a_td; | |
| } */ *ap; | |
| { | { |
| return (0); | return (0); |
| } | } |
| Line 855 ntfs_fsync(ap) | Line 823 ntfs_fsync(ap) |
| * Return POSIX pathconf information applicable to NTFS filesystem | * Return POSIX pathconf information applicable to NTFS filesystem |
| */ | */ |
| int | int |
| ntfs_pathconf(v) | ntfs_pathconf(void *v) |
| void *v; | |
| { | { |
| struct vop_pathconf_args /* { | struct vop_pathconf_args /* { |
| struct vnode *a_vp; | struct vnode *a_vp; |