/freebsd-11-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/ |
H A D | zfs_vfsops.c | 105 static void zfs_objset_close(zfsvfs_t *zfsvfs); 130 zfs_getquota(zfsvfs_t *zfsvfs, uid_t id, int isgroup, struct dqblk64 *dqp) argument 140 quotaobj = isgroup ? zfsvfs->z_groupquota_obj : zfsvfs->z_userquota_obj; 142 if (quotaobj == 0 || zfsvfs->z_replay) { 147 if ((error = zap_lookup(zfsvfs->z_os, quotaobj, 157 error = zap_lookup(zfsvfs->z_os, usedobj, buf, sizeof(used), 1, &used); 178 zfsvfs_t *zfsvfs = vfsp->vfs_data; local 190 ZFS_ENTER(zfsvfs); 238 * Create fuid using zfs_fuid_create(zfsvfs, i 309 zfsvfs_t *zfsvfs = vfsp->vfs_data; local 402 zfsvfs_t *zfsvfs = arg; local 420 zfsvfs_t *zfsvfs = arg; local 442 zfsvfs_t *zfsvfs = arg; local 454 zfsvfs_t *zfsvfs = arg; local 472 zfsvfs_t *zfsvfs = arg; local 488 zfsvfs_t *zfsvfs = arg; local 512 zfsvfs_t *zfsvfs = arg; local 525 zfsvfs_t *zfsvfs = arg; local 533 zfsvfs_t *zfsvfs = arg; local 541 zfsvfs_t *zfsvfs = arg; local 549 zfsvfs_t *zfsvfs = arg; local 559 zfsvfs_t *zfsvfs = NULL; local 789 fuidstr_to_sid(zfsvfs_t *zfsvfs, const char *fuidstr, char *domainbuf, int buflen, uid_t *ridp) argument 806 zfs_userquota_prop_to_obj(zfsvfs_t *zfsvfs, zfs_userquota_prop_t type) argument 822 zfs_userspace_many(zfsvfs_t *zfsvfs, zfs_userquota_prop_t type, uint64_t *cookiep, void *vbuf, uint64_t *bufsizep) argument 867 id_to_fuidstr(zfsvfs_t *zfsvfs, const char *domain, uid_t rid, char *buf, boolean_t addok) argument 884 zfs_userspace_one(zfsvfs_t *zfsvfs, zfs_userquota_prop_t type, const char *domain, uint64_t rid, uint64_t *valp) argument 911 zfs_set_userquota(zfsvfs_t *zfsvfs, zfs_userquota_prop_t type, const char *domain, uint64_t rid, uint64_t quota) argument 972 zfs_fuid_overquota(zfsvfs_t *zfsvfs, boolean_t isgroup, uint64_t fuid) argument 996 zfs_owner_overquota(zfsvfs_t *zfsvfs, znode_t *zp, boolean_t isgroup) argument 1017 zfsvfs_init(zfsvfs_t *zfsvfs, objset_t *os) argument 1151 zfsvfs_t *zfsvfs; local 1187 zfsvfs_create_impl(zfsvfs_t **zfvp, zfsvfs_t *zfsvfs, objset_t *os) argument 1224 zfsvfs_setup(zfsvfs_t *zfsvfs, boolean_t mounting) argument 1305 zfsvfs_free(zfsvfs_t *zfsvfs) argument 1332 zfs_set_fuid_feature(zfsvfs_t *zfsvfs) argument 1360 zfsvfs_t *zfsvfs; local 1458 zfs_unregister_callbacks(zfsvfs_t *zfsvfs) argument 1463 dsl_prop_unregister_all(dmu_objset_ds(os), zfsvfs); local 1659 zfsvfs_t *zfsvfs = NULL; local 1896 zfsvfs_t *zfsvfs = vfsp->vfs_data; local 1943 zfsvfs_t *zfsvfs = vfsp->vfs_data; local 2001 zfsvfs_t *zfsvfs = vfsp->vfs_data; local 2030 zfsvfs_teardown(zfsvfs_t *zfsvfs, boolean_t unmounting) argument 2127 zfsvfs_t *zfsvfs = vfsp->vfs_data; local 2236 zfsvfs_t *zfsvfs = vfsp->vfs_data; local 2272 zfsvfs_t *zfsvfs = vfsp->vfs_data; local 2292 zfsvfs_t *zfsvfs = vfsp->vfs_data; local 2416 zfs_suspend_fs(zfsvfs_t *zfsvfs) argument 2434 zfs_resume_fs(zfsvfs_t *zfsvfs, dsl_dataset_t *ds) argument 2493 zfsvfs_t *zfsvfs = vfsp->vfs_data; local 2592 zfs_set_version(zfsvfs_t *zfsvfs, uint64_t newvers) argument [all...] |
H A D | zfs_fuid.c | 49 * the zfsvfs->z_fuid_dirty flag is set to true and the caller will then 194 zfs_fuid_init(zfsvfs_t *zfsvfs) argument 196 rw_enter(&zfsvfs->z_fuid_lock, RW_WRITER); 198 if (zfsvfs->z_fuid_loaded) { 199 rw_exit(&zfsvfs->z_fuid_lock); 203 zfs_fuid_avl_tree_create(&zfsvfs->z_fuid_idx, &zfsvfs->z_fuid_domain); 205 (void) zap_lookup(zfsvfs->z_os, MASTER_NODE_OBJ, 206 ZFS_FUID_TABLES, 8, 1, &zfsvfs->z_fuid_obj); 207 if (zfsvfs 221 zfs_fuid_sync(zfsvfs_t *zfsvfs, dmu_tx_t *tx) argument 296 zfs_fuid_find_by_domain(zfsvfs_t *zfsvfs, const char *domain, char **retdomain, boolean_t addok) argument 361 zfs_fuid_find_by_idx(zfsvfs_t *zfsvfs, uint32_t idx) argument 391 zfs_fuid_map_id(zfsvfs_t *zfsvfs, uint64_t fuid, cred_t *cr, zfs_fuid_type_t type) argument 493 zfs_fuid_create_cred(zfsvfs_t *zfsvfs, zfs_fuid_type_t type, cred_t *cr, zfs_fuid_info_t **fuidp) argument 550 zfs_fuid_create(zfsvfs_t *zfsvfs, uint64_t id, cred_t *cr, zfs_fuid_type_t type, zfs_fuid_info_t **fuidpp) argument 637 zfs_fuid_destroy(zfsvfs_t *zfsvfs) argument 699 zfs_groupmember(zfsvfs_t *zfsvfs, uint64_t id, cred_t *cr) argument 749 zfs_fuid_txhold(zfsvfs_t *zfsvfs, dmu_tx_t *tx) argument [all...] |
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 231 SA_ADD_BULK_ATTR(bulk, count, SA_ZPL_MTIME(zfsvfs), NULL, &mtime, 16); 232 SA_ADD_BULK_ATTR(bulk, count, SA_ZPL_CTIME(zfsvfs), NULL, &ctime, 16); 233 SA_ADD_BULK_ATTR(bulk, count, SA_ZPL_CRTIME(zfsvfs), NULL, &crtime, 16); 234 SA_ADD_BULK_ATTR(bulk, count, SA_ZPL_MODE(zfsvfs), NUL [all...] |
H A D | zfs_dir.c | 67 zfs_match_find(zfsvfs_t *zfsvfs, znode_t *dzp, const char *name, argument 72 if (zfsvfs->z_norm) { 78 error = zap_lookup_norm(zfsvfs->z_os, dzp->z_id, name, 8, 1, 81 error = zap_lookup(zfsvfs->z_os, dzp->z_id, name, 8, 1, zoid); 111 zfsvfs_t *zfsvfs = dzp->z_zfsvfs; local 132 * zfsvfs->z_case and zfsvfs->z_norm fields. These choices 144 if (zfsvfs->z_norm != 0) { 152 if (zfsvfs->z_case == ZFS_CASE_MIXED) { 172 error = sa_lookup(dzp->z_sa_hdl, SA_ZPL_XATTR(zfsvfs), 199 zfsvfs_t *zfsvfs = dzp->z_zfsvfs; local 223 zfsvfs_t *zfsvfs = dzp->z_zfsvfs; local 264 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 278 zfs_unlinked_drain(zfsvfs_t *zfsvfs) argument 365 zfsvfs_t *zfsvfs = dzp->z_zfsvfs; local 419 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 564 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 694 zfsvfs_t *zfsvfs = dzp->z_zfsvfs; local 793 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 879 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 952 zfsvfs_t *zfsvfs = zdp->z_zfsvfs; local [all...] |
H A D | zfs_znode.c | 96 * Needed to close a small window in zfs_znode_move() that allows the zfsvfs to 236 zfsvfs_t *zfsvfs; local 247 zfsvfs = ozp->z_zfsvfs; 248 if (!POINTER_IS_VALID(zfsvfs)) { 255 * be unmounted and freed, and zfsvfs, though valid in the previous 260 if (zfsvfs != ozp->z_zfsvfs) { 272 rrm_enter(&zfsvfs->z_teardown_lock, RW_READER, FTAG); 273 if (zfsvfs->z_unmounted) { 274 ZFS_EXIT(zfsvfs); 281 mutex_enter(&zfsvfs 468 zfs_create_share_dir(zfsvfs_t *zfsvfs, dmu_tx_t *tx) argument 547 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 605 zfs_znode_alloc(zfsvfs_t *zfsvfs, dmu_buf_t *db, int blksz, dmu_object_type_t obj_type, sa_handle_t *hdl) argument 768 zfsvfs_t *zfsvfs = dzp->z_zfsvfs; local 1110 zfs_zget(zfsvfs_t *zfsvfs, uint64_t obj_num, znode_t **zpp) argument 1254 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 1388 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 1407 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 1442 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 1560 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 1638 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 1685 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 1765 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 1838 zfsvfs_t *zfsvfs; local 2245 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local [all...] |
H A D | zfs_vnops.c | 93 * This is done avoiding races using ZFS_ENTER(zfsvfs). 94 * A ZFS_EXIT(zfsvfs) is needed before all returns. Any znodes 129 * If dmu_tx_assign() returns ERESTART and zfsvfs->z_assign is TXG_NOWAIT, 150 * ZFS_ENTER(zfsvfs); // exit if unmounted 168 * ZFS_EXIT(zfsvfs); // finished in zfs 179 * ZFS_EXIT(zfsvfs); // finished in zfs 188 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 190 ZFS_ENTER(zfsvfs); 195 ZFS_EXIT(zfsvfs); 203 ZFS_EXIT(zfsvfs); 222 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 301 zfsvfs_t *zfsvfs; local 703 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 860 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 1280 zfsvfs_t *zfsvfs = arg; local 1414 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 1445 zfsvfs_t *zfsvfs = zdp->z_zfsvfs; local 1532 zfsvfs_t *zfsvfs = zdp->z_zfsvfs; local 1775 zfsvfs_t *zfsvfs = dzp->z_zfsvfs; local 1939 zfsvfs_t *zfsvfs = dzp->z_zfsvfs; local 2069 zfsvfs_t *zfsvfs = dzp->z_zfsvfs; local 2236 zfsvfs_t *zfsvfs = dzp->z_zfsvfs; local 2325 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 2627 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 2662 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 2876 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 3510 zfsvfs_t *zfsvfs; local 3683 zfsvfs_t *zfsvfs; local 3752 zfsvfs_t *zfsvfs; local 4011 zfsvfs_t *zfsvfs = dzp->z_zfsvfs; local 4148 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 4188 zfsvfs_t *zfsvfs = dzp->z_zfsvfs; local 4306 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 4356 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 4422 zfsvfs_t *zfsvfs; local 4503 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 4521 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 4543 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 4640 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 4978 zfsvfs_t *zfsvfs; local 4996 zfsvfs_t *zfsvfs; local 5186 zfsvfs_t *zfsvfs = VTOZ(vp)->z_zfsvfs; local 5387 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 5526 zfsvfs_t *zfsvfs = VTOZ(ap->a_vp)->z_zfsvfs; local 5595 zfsvfs_t *zfsvfs = VTOZ(ap->a_vp)->z_zfsvfs; local 5663 zfsvfs_t *zfsvfs = VTOZ(ap->a_vp)->z_zfsvfs; local 5731 zfsvfs_t *zfsvfs = VTOZ(ap->a_vp)->z_zfsvfs; local 5934 zfsvfs_t *zfsvfs = vp->v_vfsp->vfs_data; local [all...] |
H A D | zfs_replay.c | 270 zfsvfs_t *zfsvfs = arg1; local 306 if ((error = zfs_zget(zfsvfs, lr->lr_doid, &dzp)) != 0) 323 error = dmu_object_info(zfsvfs->z_os, lr->lr_foid, NULL); 334 zfsvfs->z_fuid_replay = zfs_replay_fuids(fuidstart, 350 if (zfsvfs->z_fuid_replay == NULL) { 353 zfsvfs->z_fuid_replay = 370 zfsvfs->z_fuid_replay = zfs_replay_fuids(fuidstart, 385 if (zfsvfs->z_fuid_replay == NULL) { 388 zfsvfs->z_fuid_replay = 410 if (zfsvfs 420 zfsvfs_t *zfsvfs = arg1; local 554 zfsvfs_t *zfsvfs = arg1; local 607 zfsvfs_t *zfsvfs = arg1; local 649 zfsvfs_t *zfsvfs = arg1; local 721 zfsvfs_t *zfsvfs = arg1; local 789 zfsvfs_t *zfsvfs = arg1; local 837 zfsvfs_t *zfsvfs = arg1; local 870 zfsvfs_t *zfsvfs = arg1; local 931 zfsvfs_t *zfsvfs = arg1; local 981 zfsvfs_t *zfsvfs = arg1; local [all...] |
H A D | zfs_ctldir.c | 343 zfsctl_create(zfsvfs_t *zfsvfs) argument 350 ASSERT(zfsvfs->z_ctldir == NULL); 358 VERIFY(VFS_ROOT(zfsvfs->z_vfs, LK_EXCLUSIVE, &rvp) == 0); 359 VERIFY(0 == sa_lookup(VTOZ(rvp)->z_sa_hdl, SA_ZPL_CRTIME(zfsvfs), 364 zfsvfs->z_ctldir = dot_zfs; 373 zfsctl_destroy(zfsvfs_t *zfsvfs) argument 375 sfs_destroy_node(zfsvfs->z_ctldir->snapdir); 376 sfs_destroy_node((sfs_node_t *)zfsvfs->z_ctldir); 377 zfsvfs->z_ctldir = NULL; 429 zfsctl_root(zfsvfs_t *zfsvfs, in argument 672 zfsvfs_t *zfsvfs = vp->v_vfsp->vfs_data; local 928 zfsvfs_t *zfsvfs = dvp->v_vfsp->vfs_data; local 1055 zfsvfs_t *zfsvfs = vp->v_vfsp->vfs_data; local 1120 zfsvfs_t *zfsvfs = vp->v_vfsp->vfs_data; local 1262 zfsvfs_t *zfsvfs = vfsp->vfs_data; local 1292 zfsvfs_t *zfsvfs = vfsp->vfs_data; local [all...] |
H A D | zfs_acl.c | 370 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 377 if ((error = sa_size(zp->z_sa_hdl, SA_ZPL_DACL_ACES(zfsvfs), 381 if ((error = sa_lookup(zp->z_sa_hdl, SA_ZPL_DACL_COUNT(zfsvfs), 386 if ((error = sa_lookup(zp->z_sa_hdl, SA_ZPL_ZNODE_ACL(zfsvfs), 657 zfs_copy_ace_2_fuid(zfsvfs_t *zfsvfs, vtype_t obj_type, zfs_acl_t *aclp, argument 675 aceptr->z_fuid = zfs_fuid_create(zfsvfs, acep->a_who, 719 zfs_copy_fuid_2_ace(zfsvfs_t *zfsvfs, zfs_acl_t *aclp, cred_t *cr, argument 762 acep->a_who = zfs_fuid_map_id(zfsvfs, who, 1167 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 1182 SA_ADD_BULK_ATTR(bulk, count, SA_ZPL_MODE(zfsvfs), NUL 1478 zfs_acl_inherit(zfsvfs_t *zfsvfs, vtype_t vtype, zfs_acl_t *paclp, uint64_t mode, boolean_t *need_chmod) argument 1613 zfsvfs_t *zfsvfs = dzp->z_zfsvfs; local 1761 zfs_acl_ids_overquota(zfsvfs_t *zfsvfs, zfs_acl_ids_t *acl_ids) argument 1869 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 1929 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 2103 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 2241 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local [all...] |
H A D | zfs_ioctl.c | 594 * Get the zfsvfs; if there isn't one, then the dataset isn't 1536 * objset from the zfsvfs. 1553 zfsvfs_rele(zfsvfs_t *zfsvfs, void *tag) argument 1555 rrm_exit(&zfsvfs->z_teardown_lock, tag); 1557 if (zfsvfs->z_vfs) { 1559 VFS_RELE(zfsvfs->z_vfs); 1561 vfs_unbusy(zfsvfs->z_vfs); 1564 dmu_objset_disown(zfsvfs->z_os, zfsvfs); 1565 zfsvfs_free(zfsvfs); 2476 zfsvfs_t *zfsvfs; local 2578 zfsvfs_t *zfsvfs; local 3596 zfsvfs_t *zfsvfs = NULL; local 3980 zfsvfs_t *zfsvfs; local 4676 zfsvfs_t *zfsvfs = NULL; local 5200 zfsvfs_t *zfsvfs; local 5231 zfsvfs_t *zfsvfs; local 5269 zfsvfs_t *zfsvfs; local 5563 zfsvfs_t *zfsvfs = dzp->z_zfsvfs; local 5586 zfsvfs_t *zfsvfs; local [all...] |
H A D | zcp_get.c | 692 zfsvfs_t *zfsvfs; local 707 zfsvfs = kmem_zalloc(sizeof (zfsvfs_t), KM_SLEEP); 708 error = zfsvfs_create_impl(&zfvp, zfsvfs, os);
|
/freebsd-11-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/ |
H A D | zfs_vfsops.h | 41 typedef struct zfsvfs zfsvfs_t; 44 struct zfsvfs { struct 147 extern int zfs_suspend_fs(zfsvfs_t *zfsvfs); 148 extern int zfs_resume_fs(zfsvfs_t *zfsvfs, struct dsl_dataset *ds); 149 extern int zfs_userspace_one(zfsvfs_t *zfsvfs, zfs_userquota_prop_t type, 151 extern int zfs_userspace_many(zfsvfs_t *zfsvfs, zfs_userquota_prop_t type, 153 extern int zfs_set_userquota(zfsvfs_t *zfsvfs, zfs_userquota_prop_t type, 155 extern boolean_t zfs_owner_overquota(zfsvfs_t *zfsvfs, struct znode *, 157 extern boolean_t zfs_fuid_overquota(zfsvfs_t *zfsvfs, boolean_t isgroup, 159 extern int zfs_set_version(zfsvfs_t *zfsvfs, uint64_ [all...] |
H A D | zfs_znode.h | 171 struct zfsvfs *z_zfsvfs; 248 #define ZFS_ENTER(zfsvfs) \ 250 rrm_enter_read(&(zfsvfs)->z_teardown_lock, FTAG); \ 251 if ((zfsvfs)->z_unmounted) { \ 252 ZFS_EXIT(zfsvfs); \ 258 #define ZFS_EXIT(zfsvfs) rrm_exit(&(zfsvfs)->z_teardown_lock, FTAG) 271 #define ZFS_OBJ_MUTEX(zfsvfs, obj_num) \ 272 (&(zfsvfs)->z_hold_mtx[ZFS_OBJ_HASH(obj_num)]) 273 #define ZFS_OBJ_HOLD_ENTER(zfsvfs, obj_nu [all...] |
H A D | zfs_fuid.h | 119 extern const char *zfs_fuid_find_by_idx(zfsvfs_t *zfsvfs, uint32_t idx); 120 extern void zfs_fuid_txhold(zfsvfs_t *zfsvfs, dmu_tx_t *tx);
|
H A D | zfs_acl.h | 203 struct zfsvfs; 209 boolean_t zfs_acl_ids_overquota(struct zfsvfs *, zfs_acl_ids_t *); 226 int zfs_vsec_2_aclp(struct zfsvfs *, vtype_t, vsecattr_t *, cred_t *,
|
H A D | zfs_dir.h | 65 extern void zfs_unlinked_drain(zfsvfs_t *zfsvfs);
|
H A D | zfs_ioctl.h | 416 struct zfsvfs; 430 extern int getzfsvfs_impl(struct objset *, struct zfsvfs **); 434 extern int getzfsvfs(const char *, struct zfsvfs **);
|