FreeBSD/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_replay.c
/*
 * Functions to replay ZFS intent log (ZIL) records
 * The functions are called through a function vector (zfs_replay_vector)
 * which is indexed by the transaction type.
 */
Functions to replay ZFS intent log (ZIL) records
The functions are called through a function vector (zfs_replay_vector)
which is indexed by the transaction type.
Functions to replay ZFS intent log ( ZIL ) records The functions are called through a function vector ( zfs_replay_vector ) which is indexed by the transaction type .
static void
zfs_init_vattr(vattr_t *vap, uint64_t mask, uint64_t mode,
    uint64_t uid, uint64_t gid, uint64_t rdev, uint64_t nodeid)
{
	VATTR_NULL(vap);
	vap->va_mask = (uint_t)mask;
	if (mask & AT_TYPE)
		vap->va_type = IFTOVT(mode);
	if (mask & AT_MODE)
		vap->va_mode = mode & MODEMASK;
	if (mask & AT_UID)
		vap->va_uid = (uid_t)(IS_EPHEMERAL(uid)) ? -1 : uid;
	if (mask & AT_GID)
		vap->va_gid = (gid_t)(IS_EPHEMERAL(gid)) ? -1 : gid;
	vap->va_rdev = zfs_cmpldev(rdev);
	vap->va_nodeid = nodeid;
}
static void zfs_init_vattr ( vattr_t * vap , uint64_t mask , uint64_t mode , uint64_t uid , uint64_t gid , uint64_t rdev , uint64_t nodeid ) { VATTR_NULL ( vap ) ; vap -> va_mask = ( uint_t ) mask ; if ( mask & AT_TYPE ) vap -> va_type = IFTOVT ( mode ) ; if ( mask & AT_MODE ) vap -> va_mode = mode & MODEMASK ; if ( mask & AT_UID ) vap -> va_uid = ( uid_t ) ( IS_EPHEMERAL ( uid ) ) ? -1 : uid ; if ( mask & AT_GID ) vap -> va_gid = ( gid_t ) ( IS_EPHEMERAL ( gid ) ) ? -1 : gid ; vap -> va_rdev = zfs_cmpldev ( rdev ) ; vap -> va_nodeid = nodeid ; }
Functions to replay ZFS intent log (ZIL) records
 The functions are called through a function vector (zfs_replay_vector)
 which is indexed by the transaction type.
Functions to replay ZFS intent log ( ZIL ) records The functions are called through a function vector ( zfs_replay_vector ) which is indexed by the transaction type .