/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | zfs_sa.c | 124 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 130 if (sa_lookup(zp->z_sa_hdl, SA_ZPL_SCANSTAMP(zfsvfs), 158 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 164 VERIFY(0 == sa_update(zp->z_sa_hdl, SA_ZPL_SCANSTAMP(zfsvfs), 181 VERIFY(0 == sa_update(zp->z_sa_hdl, SA_ZPL_FLAGS(zfsvfs), 199 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 236 SA_ADD_BULK_ATTR(bulk, count, SA_ZPL_MTIME(zfsvfs), NULL, &mtime, 16); 237 SA_ADD_BULK_ATTR(bulk, count, SA_ZPL_CTIME(zfsvfs), NULL, &ctime, 16); 238 SA_ADD_BULK_ATTR(bulk, count, SA_ZPL_CRTIME(zfsvfs), NULL, &crtime, 16); 239 SA_ADD_BULK_ATTR(bulk, count, SA_ZPL_MODE(zfsvfs), NUL [all...] |
H A D | zfs_replay.c | 72 zfs_replay_error(zfsvfs_t *zfsvfs, lr_t *lr, boolean_t byteswap) argument 265 zfs_replay_create_acl(zfsvfs_t *zfsvfs, argument 302 if ((error = zfs_zget(zfsvfs, lr->lr_doid, &dzp)) != 0) 319 error = dmu_object_info(zfsvfs->z_os, lr->lr_foid, NULL); 330 zfsvfs->z_fuid_replay = zfs_replay_fuids(fuidstart, 346 if (zfsvfs->z_fuid_replay == NULL) { 349 zfsvfs->z_fuid_replay = 362 zfsvfs->z_fuid_replay = zfs_replay_fuids(fuidstart, 377 if (zfsvfs->z_fuid_replay == NULL) { 380 zfsvfs 406 zfs_replay_create(zfsvfs_t *zfsvfs, lr_create_t *lr, boolean_t byteswap) argument 531 zfs_replay_remove(zfsvfs_t *zfsvfs, lr_remove_t *lr, boolean_t byteswap) argument 564 zfs_replay_link(zfsvfs_t *zfsvfs, lr_link_t *lr, boolean_t byteswap) argument 594 zfs_replay_rename(zfsvfs_t *zfsvfs, lr_rename_t *lr, boolean_t byteswap) argument 626 zfs_replay_write(zfsvfs_t *zfsvfs, lr_write_t *lr, boolean_t byteswap) argument 692 zfs_replay_write2(zfsvfs_t *zfsvfs, lr_write_t *lr, boolean_t byteswap) argument 737 zfs_replay_truncate(zfsvfs_t *zfsvfs, lr_truncate_t *lr, boolean_t byteswap) argument 764 zfs_replay_setattr(zfsvfs_t *zfsvfs, lr_setattr_t *lr, boolean_t byteswap) argument 816 zfs_replay_acl_v0(zfsvfs_t *zfsvfs, lr_acl_v0_t *lr, boolean_t byteswap) argument 860 zfs_replay_acl(zfsvfs_t *zfsvfs, lr_acl_t *lr, boolean_t byteswap) argument [all...] |
H A D | zfs_dir.c | 65 zfs_match_find(zfsvfs_t *zfsvfs, znode_t *dzp, char *name, boolean_t exact, argument 70 if (zfsvfs->z_norm) { 86 error = zap_lookup_norm(zfsvfs->z_os, dzp->z_id, name, 8, 1, 91 error = zap_lookup(zfsvfs->z_os, dzp->z_id, name, 8, 1, zoid); 140 zfsvfs_t *zfsvfs = dzp->z_zfsvfs; local 163 * zfsvfs->z_case and zfsvfs->z_norm fields. These choices 183 ((zfsvfs->z_case == ZFS_CASE_INSENSITIVE) && (flag & ZCIEXACT)) || 184 ((zfsvfs->z_case == ZFS_CASE_MIXED) && !(flag & ZCILOOK)); 196 update = !zfsvfs 392 zfsvfs_t *zfsvfs = dzp->z_zfsvfs; local 453 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 467 zfs_unlinked_drain(zfsvfs_t *zfsvfs) argument 532 zfsvfs_t *zfsvfs = dzp->z_zfsvfs; local 585 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 710 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 813 zfsvfs_t *zfsvfs = dzp->z_zfsvfs; local 926 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 1002 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 1074 zfsvfs_t *zfsvfs = zdp->z_zfsvfs; local [all...] |
H A D | zfs_fuid.c | 49 * the zfsvfs->z_fuid_dirty flag is set to true and the caller will then 199 zfs_fuid_init(zfsvfs_t *zfsvfs) argument 201 rw_enter(&zfsvfs->z_fuid_lock, RW_WRITER); 203 if (zfsvfs->z_fuid_loaded) { 204 rw_exit(&zfsvfs->z_fuid_lock); 208 zfs_fuid_avl_tree_create(&zfsvfs->z_fuid_idx, &zfsvfs->z_fuid_domain); 210 (void) zap_lookup(zfsvfs->z_os, MASTER_NODE_OBJ, 211 ZFS_FUID_TABLES, 8, 1, &zfsvfs->z_fuid_obj); 212 if (zfsvfs 226 zfs_fuid_sync(zfsvfs_t *zfsvfs, dmu_tx_t *tx) argument 301 zfs_fuid_find_by_domain(zfsvfs_t *zfsvfs, const char *domain, char **retdomain, boolean_t addok) argument 366 zfs_fuid_find_by_idx(zfsvfs_t *zfsvfs, uint32_t idx) argument 396 zfs_fuid_map_id(zfsvfs_t *zfsvfs, uint64_t fuid, cred_t *cr, zfs_fuid_type_t type) argument 494 zfs_fuid_create_cred(zfsvfs_t *zfsvfs, zfs_fuid_type_t type, cred_t *cr, zfs_fuid_info_t **fuidp) argument 551 zfs_fuid_create(zfsvfs_t *zfsvfs, uint64_t id, cred_t *cr, zfs_fuid_type_t type, zfs_fuid_info_t **fuidpp) argument 638 zfs_fuid_destroy(zfsvfs_t *zfsvfs) argument 700 zfs_groupmember(zfsvfs_t *zfsvfs, uint64_t id, cred_t *cr) argument 746 zfs_fuid_txhold(zfsvfs_t *zfsvfs, dmu_tx_t *tx) argument [all...] |
H A D | zfs_znode.c | 95 * Needed to close a small window in zfs_znode_move() that allows the zfsvfs to 245 zfsvfs_t *zfsvfs; local 256 zfsvfs = ozp->z_zfsvfs; 257 if (!POINTER_IS_VALID(zfsvfs)) { 264 * be unmounted and freed, and zfsvfs, though valid in the previous 269 if (zfsvfs != ozp->z_zfsvfs) { 281 rrm_enter(&zfsvfs->z_teardown_lock, RW_READER, FTAG); 282 if (zfsvfs->z_unmounted) { 283 ZFS_EXIT(zfsvfs); 290 mutex_enter(&zfsvfs 472 zfs_create_share_dir(zfsvfs_t *zfsvfs, dmu_tx_t *tx) argument 575 zfs_znode_sa_init(zfsvfs_t *zfsvfs, znode_t *zp, dmu_buf_t *db, dmu_object_type_t obj_type, sa_handle_t *sa_hdl) argument 624 zfs_znode_alloc(zfsvfs_t *zfsvfs, dmu_buf_t *db, int blksz, dmu_object_type_t obj_type, sa_handle_t *hdl) argument 770 zfsvfs_t *zfsvfs = dzp->z_zfsvfs; local 1102 zfs_zget(zfsvfs_t *zfsvfs, uint64_t obj_num, znode_t **zpp) argument 1183 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 1264 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 1284 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 1336 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 1452 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 1528 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 1566 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 1661 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 1734 zfsvfs_t *zfsvfs; local [all...] |
H A D | zfs_ctldir.c | 210 zfsvfs_t *zfsvfs = vp->v_vfsp->vfs_data; local 217 return (zfsvfs->z_shares_dir); 227 zfsctl_create(zfsvfs_t *zfsvfs) argument 233 ASSERT(zfsvfs->z_ctldir == NULL); 235 vp = gfs_root_create(sizeof (zfsctl_node_t), zfsvfs->z_vfs, 241 VERIFY(VFS_ROOT(zfsvfs->z_vfs, &rvp) == 0); 242 VERIFY(0 == sa_lookup(VTOZ(rvp)->z_sa_hdl, SA_ZPL_CRTIME(zfsvfs), 254 zfsvfs->z_ctldir = vp; 263 zfsctl_destroy(zfsvfs_t *zfsvfs) argument 265 VN_RELE(zfsvfs 357 zfsvfs_t *zfsvfs = vp->v_vfsp->vfs_data; local 391 zfsvfs_t *zfsvfs = vp->v_vfsp->vfs_data; local 432 zfsvfs_t *zfsvfs = vp->v_vfsp->vfs_data; local 455 zfsvfs_t *zfsvfs = dvp->v_vfsp->vfs_data; local 622 zfsvfs_t *zfsvfs; local 688 zfsvfs_t *zfsvfs; local 744 zfsvfs_t *zfsvfs = dvp->v_vfsp->vfs_data; local 792 zfsvfs_t *zfsvfs = dvp->v_vfsp->vfs_data; local 955 zfsvfs_t *zfsvfs = dvp->v_vfsp->vfs_data; local 986 zfsvfs_t *zfsvfs = vp->v_vfsp->vfs_data; local 1032 zfsvfs_t *zfsvfs = vp->v_vfsp->vfs_data; local 1100 zfsvfs_t *zfsvfs = vp->v_vfsp->vfs_data; local 1124 zfsvfs_t *zfsvfs = vp->v_vfsp->vfs_data; local 1268 zfsvfs_t *zfsvfs = vfsp->vfs_data; local 1328 zfsvfs_t *zfsvfs = vfsp->vfs_data; local [all...] |
H A D | zfs_acl.c | 373 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 380 if ((error = sa_size(zp->z_sa_hdl, SA_ZPL_DACL_ACES(zfsvfs), 384 if ((error = sa_lookup(zp->z_sa_hdl, SA_ZPL_DACL_COUNT(zfsvfs), 389 if ((error = sa_lookup(zp->z_sa_hdl, SA_ZPL_ZNODE_ACL(zfsvfs), 660 zfs_copy_ace_2_fuid(zfsvfs_t *zfsvfs, vtype_t obj_type, zfs_acl_t *aclp, argument 678 aceptr->z_fuid = zfs_fuid_create(zfsvfs, acep->a_who, 722 zfs_copy_fuid_2_ace(zfsvfs_t *zfsvfs, zfs_acl_t *aclp, cred_t *cr, argument 765 acep->a_who = zfs_fuid_map_id(zfsvfs, who, 1184 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 1198 SA_ADD_BULK_ATTR(bulk, count, SA_ZPL_MODE(zfsvfs), NUL 1496 zfs_acl_inherit(zfsvfs_t *zfsvfs, vtype_t vtype, zfs_acl_t *paclp, uint64_t mode) argument 1617 zfsvfs_t *zfsvfs = dzp->z_zfsvfs; local 1756 zfs_acl_ids_overquota(zfsvfs_t *zfsvfs, zfs_acl_ids_t *acl_ids) argument 1863 zfs_vsec_2_aclp(zfsvfs_t *zfsvfs, vtype_t obj_type, vsecattr_t *vsecp, cred_t *cr, zfs_fuid_info_t **fuidp, zfs_acl_t **zaclp) argument 1923 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 2090 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 2227 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local [all...] |
H A D | zfs_vfsops.c | 156 zfsvfs_t *zfsvfs = vfsp->vfs_data; local 159 ZFS_ENTER(zfsvfs); 160 dp = dmu_objset_pool(zfsvfs->z_os); 167 ZFS_EXIT(zfsvfs); 171 if (zfsvfs->z_log != NULL) 172 zil_commit(zfsvfs->z_log, 0); 174 ZFS_EXIT(zfsvfs); 242 zfsvfs_t *zfsvfs = arg; local 245 zfsvfs->z_atime = TRUE; 246 vfs_clearmntopt(zfsvfs 258 zfsvfs_t *zfsvfs = arg; local 276 zfsvfs_t *zfsvfs = arg; local 288 zfsvfs_t *zfsvfs = arg; local 306 zfsvfs_t *zfsvfs = arg; local 322 zfsvfs_t *zfsvfs = arg; local 338 zfsvfs_t *zfsvfs = arg; local 362 zfsvfs_t *zfsvfs = arg; local 375 zfsvfs_t *zfsvfs = arg; local 383 zfsvfs_t *zfsvfs = arg; local 391 zfsvfs_t *zfsvfs = arg; local 399 zfsvfs_t *zfsvfs = arg; local 409 zfsvfs_t *zfsvfs = NULL; local 634 fuidstr_to_sid(zfsvfs_t *zfsvfs, const char *fuidstr, char *domainbuf, int buflen, uid_t *ridp) argument 651 zfs_userquota_prop_to_obj(zfsvfs_t *zfsvfs, zfs_userquota_prop_t type) argument 667 zfs_userspace_many(zfsvfs_t *zfsvfs, zfs_userquota_prop_t type, uint64_t *cookiep, void *vbuf, uint64_t *bufsizep) argument 712 id_to_fuidstr(zfsvfs_t *zfsvfs, const char *domain, uid_t rid, char *buf, boolean_t addok) argument 729 zfs_userspace_one(zfsvfs_t *zfsvfs, zfs_userquota_prop_t type, const char *domain, uint64_t rid, uint64_t *valp) argument 756 zfs_set_userquota(zfsvfs_t *zfsvfs, zfs_userquota_prop_t type, const char *domain, uint64_t rid, uint64_t quota) argument 817 zfs_fuid_overquota(zfsvfs_t *zfsvfs, boolean_t isgroup, uint64_t fuid) argument 841 zfs_owner_overquota(zfsvfs_t *zfsvfs, znode_t *zp, boolean_t isgroup) argument 862 zfsvfs_init(zfsvfs_t *zfsvfs, objset_t *os) argument 973 zfsvfs_t *zfsvfs; local 1014 zfsvfs_setup(zfsvfs_t *zfsvfs, boolean_t mounting) argument 1093 zfsvfs_free(zfsvfs_t *zfsvfs) argument 1121 zfs_set_fuid_feature(zfsvfs_t *zfsvfs) argument 1150 zfsvfs_t *zfsvfs; local 1240 zfs_unregister_callbacks(zfsvfs_t *zfsvfs) argument 1245 dsl_prop_unregister_all(dmu_objset_ds(os), zfsvfs); local 1438 zfsvfs_t *zfsvfs = NULL; local 1651 zfsvfs_t *zfsvfs = vfsp->vfs_data; local 1715 zfsvfs_t *zfsvfs = vfsp->vfs_data; local 1736 zfsvfs_teardown(zfsvfs_t *zfsvfs, boolean_t unmounting) argument 1829 zfsvfs_t *zfsvfs = vfsp->vfs_data; local 1913 zfsvfs_t *zfsvfs = vfsp->vfs_data; local 2005 zfs_suspend_fs(zfsvfs_t *zfsvfs) argument 2023 zfs_resume_fs(zfsvfs_t *zfsvfs, dsl_dataset_t *ds) argument 2080 zfsvfs_t *zfsvfs = vfsp->vfs_data; local 2168 zfs_set_version(zfsvfs_t *zfsvfs, uint64_t newvers) argument [all...] |
H A D | zfs_vnops.c | 98 * This is done avoiding races using ZFS_ENTER(zfsvfs). 99 * A ZFS_EXIT(zfsvfs) is needed before all returns. Any znodes 134 * If dmu_tx_assign() returns ERESTART and zfsvfs->z_assign is TXG_NOWAIT, 155 * ZFS_ENTER(zfsvfs); // exit if unmounted 173 * ZFS_EXIT(zfsvfs); // finished in zfs 184 * ZFS_EXIT(zfsvfs); // finished in zfs 193 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 195 ZFS_ENTER(zfsvfs); 200 ZFS_EXIT(zfsvfs); 208 ZFS_EXIT(zfsvfs); 227 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 306 zfsvfs_t *zfsvfs; local 511 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 660 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 1047 zfsvfs_t *zfsvfs = arg; local 1173 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 1237 zfsvfs_t *zfsvfs = zdp->z_zfsvfs; local 1380 zfsvfs_t *zfsvfs = dzp->z_zfsvfs; local 1635 zfsvfs_t *zfsvfs = dzp->z_zfsvfs; local 1871 zfsvfs_t *zfsvfs = dzp->z_zfsvfs; local 2054 zfsvfs_t *zfsvfs = dzp->z_zfsvfs; local 2193 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 2457 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 2502 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 2707 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 3444 zfsvfs_t *zfsvfs = sdzp->z_zfsvfs; local 3813 zfsvfs_t *zfsvfs = dzp->z_zfsvfs; local 3964 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 4006 zfsvfs_t *zfsvfs = dzp->z_zfsvfs; local 4179 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 4294 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 4384 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 4469 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 4596 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 4681 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 4825 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 4874 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 4935 zfsvfs_t *zfsvfs; local 5006 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 5024 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 5058 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local [all...] |
H A D | zfs_ioctl.c | 575 * Get the zfsvfs; if there isn't one, then the dataset isn't 1441 * objset from the zfsvfs. 1451 zfsvfs_rele(zfsvfs_t *zfsvfs, void *tag) argument 1453 rrm_exit(&zfsvfs->z_teardown_lock, tag); 1455 if (zfsvfs->z_vfs) { 1456 VFS_RELE(zfsvfs->z_vfs); 1458 dmu_objset_disown(zfsvfs->z_os, zfsvfs); 1459 zfsvfs_free(zfsvfs); 2350 zfsvfs_t *zfsvfs; local 2452 zfsvfs_t *zfsvfs; local 3423 zfsvfs_t *zfsvfs; local 3644 zfsvfs_t *zfsvfs; local 4277 zfsvfs_t *zfsvfs = NULL; local 4739 zfsvfs_t *zfsvfs; local 4770 zfsvfs_t *zfsvfs; local 4808 zfsvfs_t *zfsvfs; local 5080 zfsvfs_t *zfsvfs = dzp->z_zfsvfs; local 5101 zfsvfs_t *zfsvfs; local [all...] |
/illumos-gate/usr/src/uts/common/fs/zfs/sys/ |
H A D | zfs_vfsops.h | 41 typedef struct zfsvfs zfsvfs_t; 44 struct zfsvfs { struct 139 extern int zfs_suspend_fs(zfsvfs_t *zfsvfs); 140 extern int zfs_resume_fs(zfsvfs_t *zfsvfs, struct dsl_dataset *ds); 141 extern int zfs_userspace_one(zfsvfs_t *zfsvfs, zfs_userquota_prop_t type, 143 extern int zfs_userspace_many(zfsvfs_t *zfsvfs, zfs_userquota_prop_t type, 145 extern int zfs_set_userquota(zfsvfs_t *zfsvfs, zfs_userquota_prop_t type, 147 extern boolean_t zfs_owner_overquota(zfsvfs_t *zfsvfs, struct znode *, 149 extern boolean_t zfs_fuid_overquota(zfsvfs_t *zfsvfs, boolean_t isgroup, 151 extern int zfs_set_version(zfsvfs_t *zfsvfs, uint64_ [all...] |