zfs_vnops.c (177230) | zfs_vnops.c (177633) |
---|---|
1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 3537 unchanged lines hidden (view full) --- 3546 int a_flags; 3547 } */ *ap; 3548{ 3549 znode_t *zp = VTOZ(ap->a_vp); 3550 3551 return (lf_advlock(ap, &(zp->z_lockf), zp->z_phys->zp_size)); 3552} 3553 | 1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 3537 unchanged lines hidden (view full) --- 3546 int a_flags; 3547 } */ *ap; 3548{ 3549 znode_t *zp = VTOZ(ap->a_vp); 3550 3551 return (lf_advlock(ap, &(zp->z_lockf), zp->z_phys->zp_size)); 3552} 3553 |
3554/* 3555 * Advisory record locking support 3556 */ 3557static int 3558zfs_freebsd_advlockasync(ap) 3559 struct vop_advlockasync_args /* { 3560 struct vnode *a_vp; 3561 caddr_t a_id; 3562 int a_op; 3563 struct flock *a_fl; 3564 int a_flags; 3565 struct task *a_task; 3566 } */ *ap; 3567{ 3568 znode_t *zp = VTOZ(ap->a_vp); 3569 3570 return (lf_advlockasync(ap, &(zp->z_lockf), zp->z_phys->zp_size)); 3571} 3572 |
|
3554struct vop_vector zfs_vnodeops; 3555struct vop_vector zfs_fifoops; 3556 3557struct vop_vector zfs_vnodeops = { 3558 .vop_default = &default_vnodeops, 3559 .vop_inactive = zfs_freebsd_inactive, 3560 .vop_reclaim = zfs_freebsd_reclaim, 3561 .vop_access = zfs_freebsd_access, --- 17 unchanged lines hidden (view full) --- 3579 .vop_link = zfs_freebsd_link, 3580 .vop_symlink = zfs_freebsd_symlink, 3581 .vop_readlink = zfs_freebsd_readlink, 3582 .vop_read = zfs_freebsd_read, 3583 .vop_write = zfs_freebsd_write, 3584 .vop_remove = zfs_freebsd_remove, 3585 .vop_rename = zfs_freebsd_rename, 3586 .vop_advlock = zfs_freebsd_advlock, | 3573struct vop_vector zfs_vnodeops; 3574struct vop_vector zfs_fifoops; 3575 3576struct vop_vector zfs_vnodeops = { 3577 .vop_default = &default_vnodeops, 3578 .vop_inactive = zfs_freebsd_inactive, 3579 .vop_reclaim = zfs_freebsd_reclaim, 3580 .vop_access = zfs_freebsd_access, --- 17 unchanged lines hidden (view full) --- 3598 .vop_link = zfs_freebsd_link, 3599 .vop_symlink = zfs_freebsd_symlink, 3600 .vop_readlink = zfs_freebsd_readlink, 3601 .vop_read = zfs_freebsd_read, 3602 .vop_write = zfs_freebsd_write, 3603 .vop_remove = zfs_freebsd_remove, 3604 .vop_rename = zfs_freebsd_rename, 3605 .vop_advlock = zfs_freebsd_advlock, |
3606 .vop_advlockasync = zfs_freebsd_advlockasync, |
|
3587 .vop_pathconf = zfs_freebsd_pathconf, 3588 .vop_bmap = VOP_EOPNOTSUPP, 3589 .vop_fid = zfs_freebsd_fid, 3590}; 3591 3592struct vop_vector zfs_fifoops = { 3593 .vop_default = &fifo_specops, 3594 .vop_fsync = VOP_PANIC, 3595 .vop_access = zfs_freebsd_access, 3596 .vop_getattr = zfs_freebsd_getattr, 3597 .vop_inactive = zfs_freebsd_inactive, 3598 .vop_read = VOP_PANIC, 3599 .vop_reclaim = zfs_freebsd_reclaim, 3600 .vop_setattr = zfs_freebsd_setattr, 3601 .vop_write = VOP_PANIC, 3602 .vop_fid = zfs_freebsd_fid, 3603}; | 3607 .vop_pathconf = zfs_freebsd_pathconf, 3608 .vop_bmap = VOP_EOPNOTSUPP, 3609 .vop_fid = zfs_freebsd_fid, 3610}; 3611 3612struct vop_vector zfs_fifoops = { 3613 .vop_default = &fifo_specops, 3614 .vop_fsync = VOP_PANIC, 3615 .vop_access = zfs_freebsd_access, 3616 .vop_getattr = zfs_freebsd_getattr, 3617 .vop_inactive = zfs_freebsd_inactive, 3618 .vop_read = VOP_PANIC, 3619 .vop_reclaim = zfs_freebsd_reclaim, 3620 .vop_setattr = zfs_freebsd_setattr, 3621 .vop_write = VOP_PANIC, 3622 .vop_fid = zfs_freebsd_fid, 3623}; |