|
|
| version 1.9, 2003/10/09 22:27:26 | version 1.10, 2004/02/05 21:03:37 |
|---|---|
| Line 62 | Line 62 |
| #include <vm/vm_page.h> | #include <vm/vm_page.h> |
| #include <vm/vm_object.h> | #include <vm/vm_object.h> |
| #include <vm/vm_pager.h> | #include <vm/vm_pager.h> |
| #if defined(__FreeBSD__) | #if defined(__DragonFly__) |
| #include <vm/vnode_pager.h> | #include <vm/vnode_pager.h> |
| #endif | #endif |
| #include <vm/vm_extern.h> | #include <vm/vm_extern.h> |
| Line 93 static int ntfs_close (struct vop_close_ | Line 93 static int ntfs_close (struct vop_close_ |
| static int ntfs_readdir (struct vop_readdir_args *ap); | static int ntfs_readdir (struct vop_readdir_args *ap); |
| static int ntfs_lookup (struct vop_lookup_args *ap); | static int ntfs_lookup (struct vop_lookup_args *ap); |
| static int ntfs_bmap (struct vop_bmap_args *ap); | static int ntfs_bmap (struct vop_bmap_args *ap); |
| #if defined(__FreeBSD__) | #if defined(__DragonFly__) |
| static int ntfs_getpages (struct vop_getpages_args *ap); | static int ntfs_getpages (struct vop_getpages_args *ap); |
| static int ntfs_putpages (struct vop_putpages_args *); | static int ntfs_putpages (struct vop_putpages_args *); |
| static int ntfs_fsync (struct vop_fsync_args *ap); | static int ntfs_fsync (struct vop_fsync_args *ap); |
| Line 104 static int ntfs_pathconf (void *); | Line 104 static int ntfs_pathconf (void *); |
| int ntfs_prtactive = 1; /* 1 => print out reclaim of active vnodes */ | int ntfs_prtactive = 1; /* 1 => print out reclaim of active vnodes */ |
| #if defined(__FreeBSD__) | #if defined(__DragonFly__) |
| int | int |
| ntfs_getpages(ap) | ntfs_getpages(ap) |
| struct vop_getpages_args *ap; | struct vop_getpages_args *ap; |
| Line 207 ntfs_read(ap) | Line 207 ntfs_read(ap) |
| return (error); | return (error); |
| } | } |
| #if !defined(__FreeBSD__) | #if !defined(__DragonFly__) |
| static int | static int |
| ntfs_bypass(ap) | ntfs_bypass(ap) |
| Line 239 ntfs_getattr(ap) | Line 239 ntfs_getattr(ap) |
| dprintf(("ntfs_getattr: %d, flags: %d\n",ip->i_number,ip->i_flag)); | dprintf(("ntfs_getattr: %d, flags: %d\n",ip->i_number,ip->i_flag)); |
| #if defined(__FreeBSD__) | #if defined(__DragonFly__) |
| vap->va_fsid = dev2udev(ip->i_dev); | vap->va_fsid = dev2udev(ip->i_dev); |
| #else /* NetBSD */ | #else /* NetBSD */ |
| vap->va_fsid = ip->i_dev; | vap->va_fsid = ip->i_dev; |
| Line 349 ntfs_strategy(ap) | Line 349 ntfs_strategy(ap) |
| struct ntfsmount *ntmp = ip->i_mp; | struct ntfsmount *ntmp = ip->i_mp; |
| int error; | int error; |
| #ifdef __FreeBSD__ | #ifdef __DragonFly__ |
| dprintf(("ntfs_strategy: offset: %d, blkno: %d, lblkno: %d\n", | dprintf(("ntfs_strategy: offset: %d, blkno: %d, lblkno: %d\n", |
| (u_int32_t)bp->b_offset,(u_int32_t)bp->b_blkno, | (u_int32_t)bp->b_offset,(u_int32_t)bp->b_blkno, |
| (u_int32_t)bp->b_lblkno)); | (u_int32_t)bp->b_lblkno)); |
| Line 691 ntfs_readdir(ap) | Line 691 ntfs_readdir(ap) |
| if (!error && ap->a_ncookies != NULL) { | if (!error && ap->a_ncookies != NULL) { |
| struct dirent* dpStart; | struct dirent* dpStart; |
| struct dirent* dp; | struct dirent* dp; |
| #if defined(__FreeBSD__) | #if defined(__DragonFly__) |
| u_long *cookies; | u_long *cookies; |
| u_long *cookiep; | u_long *cookiep; |
| #else /* defined(__NetBSD__) */ | #else /* defined(__NetBSD__) */ |
| Line 705 ntfs_readdir(ap) | Line 705 ntfs_readdir(ap) |
| dpStart = (struct dirent *) | dpStart = (struct dirent *) |
| ((caddr_t)uio->uio_iov->iov_base - | ((caddr_t)uio->uio_iov->iov_base - |
| (uio->uio_offset - off)); | (uio->uio_offset - off)); |
| #if defined(__FreeBSD__) | #if defined(__DragonFly__) |
| MALLOC(cookies, u_long *, ncookies * sizeof(u_long), | MALLOC(cookies, u_long *, ncookies * sizeof(u_long), |
| M_TEMP, M_WAITOK); | M_TEMP, M_WAITOK); |
| #else /* defined(__NetBSD__) */ | #else /* defined(__NetBSD__) */ |
| Line 831 ntfs_lookup(ap) | Line 831 ntfs_lookup(ap) |
| return (error); | return (error); |
| } | } |
| #if defined(__FreeBSD__) | #if defined(__DragonFly__) |
| /* | /* |
| * Flush the blocks of a file to disk. | * Flush the blocks of a file to disk. |
| * | * |
| Line 898 ntfs_pathconf(v) | Line 898 ntfs_pathconf(v) |
| * Global vfs data structures | * Global vfs data structures |
| */ | */ |
| vop_t **ntfs_vnodeop_p; | vop_t **ntfs_vnodeop_p; |
| #if defined(__FreeBSD__) | #if defined(__DragonFly__) |
| static | static |
| struct vnodeopv_entry_desc ntfs_vnodeop_entries[] = { | struct vnodeopv_entry_desc ntfs_vnodeop_entries[] = { |
| { &vop_default_desc, (vop_t *)vop_defaultop }, | { &vop_default_desc, (vop_t *)vop_defaultop }, |