Changeset View
Changeset View
Standalone View
Standalone View
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_dir.c
Show First 20 Lines • Show All 809 Lines • ▼ Show 20 Lines | #endif | ||||
if ((error = zfs_acl_ids_create(zp, IS_XATTR, vap, cr, NULL, | if ((error = zfs_acl_ids_create(zp, IS_XATTR, vap, cr, NULL, | ||||
&acl_ids)) != 0) | &acl_ids)) != 0) | ||||
return (error); | return (error); | ||||
if (zfs_acl_ids_overquota(zfsvfs, &acl_ids)) { | if (zfs_acl_ids_overquota(zfsvfs, &acl_ids)) { | ||||
zfs_acl_ids_free(&acl_ids); | zfs_acl_ids_free(&acl_ids); | ||||
return (SET_ERROR(EDQUOT)); | return (SET_ERROR(EDQUOT)); | ||||
} | } | ||||
getnewvnode_reserve(1); | getnewvnode_reserve(); | ||||
tx = dmu_tx_create(zfsvfs->z_os); | tx = dmu_tx_create(zfsvfs->z_os); | ||||
dmu_tx_hold_sa_create(tx, acl_ids.z_aclp->z_acl_bytes + | dmu_tx_hold_sa_create(tx, acl_ids.z_aclp->z_acl_bytes + | ||||
ZFS_SA_BASE_ATTR_SIZE); | ZFS_SA_BASE_ATTR_SIZE); | ||||
dmu_tx_hold_sa(tx, zp->z_sa_hdl, B_TRUE); | dmu_tx_hold_sa(tx, zp->z_sa_hdl, B_TRUE); | ||||
dmu_tx_hold_zap(tx, DMU_NEW_OBJECT, FALSE, NULL); | dmu_tx_hold_zap(tx, DMU_NEW_OBJECT, FALSE, NULL); | ||||
fuid_dirtied = zfsvfs->z_fuid_dirty; | fuid_dirtied = zfsvfs->z_fuid_dirty; | ||||
if (fuid_dirtied) | if (fuid_dirtied) | ||||
▲ Show 20 Lines • Show All 142 Lines • Show Last 20 Lines |