FreeBSD/sys/ufs/ffs/ffs_vnops.c
/*
 * Vnode extattr transaction commit/abort
 */
Vnode extattr transaction commit/abort
Vnode extattr transaction commit / abort
static int
ffs_closeextattr(struct vop_closeextattr_args *ap)
{
	if (ap->a_vp->v_type == VCHR || ap->a_vp->v_type == VBLK)
		return (EOPNOTSUPP);
	if (ap->a_commit && (ap->a_vp->v_mount->mnt_flag & MNT_RDONLY))
		return (EROFS);
	return (ffs_close_ea(ap->a_vp, ap->a_commit, ap->a_cred, ap->a_td));
}
static int ffs_closeextattr ( struct vop_closeextattr_args * ap ) { if ( ap -> a_vp -> v_type == VCHR || ap -> a_vp -> v_type == VBLK ) return ( EOPNOTSUPP ) ; if ( ap -> a_commit && ( ap -> a_vp -> v_mount -> mnt_flag & MNT_RDONLY ) ) return ( EROFS ) ; return ( ffs_close_ea ( ap -> a_vp , ap -> a_commit , ap -> a_cred , ap -> a_td ) ) ; }
Vnode extattr transaction commit/abort
Vnode extattr transaction commit / abort
/*
struct vop_closeextattr_args {
	struct vnodeop_desc *a_desc;
	struct vnode *a_vp;
	int a_commit;
	IN struct ucred *a_cred;
	IN struct thread *a_td;
};
*/