/freebsd-10.0-release/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/ |
H A D | zfs_vfsops.c | 101 static void zfs_objset_close(zfsvfs_t *zfsvfs); 140 zfsvfs_t *zfsvfs = vfsp->vfs_data; local 148 ZFS_ENTER(zfsvfs); 149 dp = dmu_objset_pool(zfsvfs->z_os); 156 ZFS_EXIT(zfsvfs); 160 if (zfsvfs->z_log != NULL) 161 zil_commit(zfsvfs->z_log, 0); 163 ZFS_EXIT(zfsvfs); 233 zfsvfs_t *zfsvfs = arg; local 236 zfsvfs 251 zfsvfs_t *zfsvfs = arg; local 273 zfsvfs_t *zfsvfs = arg; local 286 zfsvfs_t *zfsvfs = arg; local 304 zfsvfs_t *zfsvfs = arg; local 320 zfsvfs_t *zfsvfs = arg; local 344 zfsvfs_t *zfsvfs = arg; local 357 zfsvfs_t *zfsvfs = arg; local 365 zfsvfs_t *zfsvfs = arg; local 373 zfsvfs_t *zfsvfs = arg; local 381 zfsvfs_t *zfsvfs = arg; local 391 zfsvfs_t *zfsvfs = NULL; local 643 fuidstr_to_sid(zfsvfs_t *zfsvfs, const char *fuidstr, char *domainbuf, int buflen, uid_t *ridp) argument 660 zfs_userquota_prop_to_obj(zfsvfs_t *zfsvfs, zfs_userquota_prop_t type) argument 676 zfs_userspace_many(zfsvfs_t *zfsvfs, zfs_userquota_prop_t type, uint64_t *cookiep, void *vbuf, uint64_t *bufsizep) argument 721 id_to_fuidstr(zfsvfs_t *zfsvfs, const char *domain, uid_t rid, char *buf, boolean_t addok) argument 738 zfs_userspace_one(zfsvfs_t *zfsvfs, zfs_userquota_prop_t type, const char *domain, uint64_t rid, uint64_t *valp) argument 765 zfs_set_userquota(zfsvfs_t *zfsvfs, zfs_userquota_prop_t type, const char *domain, uint64_t rid, uint64_t quota) argument 826 zfs_fuid_overquota(zfsvfs_t *zfsvfs, boolean_t isgroup, uint64_t fuid) argument 850 zfs_owner_overquota(zfsvfs_t *zfsvfs, znode_t *zp, boolean_t isgroup) argument 869 zfsvfs_t *zfsvfs; local 1008 zfsvfs_setup(zfsvfs_t *zfsvfs, boolean_t mounting) argument 1089 zfsvfs_free(zfsvfs_t *zfsvfs) argument 1116 zfs_set_fuid_feature(zfsvfs_t *zfsvfs) argument 1144 zfsvfs_t *zfsvfs; local 1244 zfs_unregister_callbacks(zfsvfs_t *zfsvfs) argument 1479 zfsvfs_t *zfsvfs = NULL; local 1744 zfsvfs_t *zfsvfs = vfsp->vfs_data; local 1802 zfsvfs_t *zfsvfs = vfsp->vfs_data; local 1832 zfsvfs_teardown(zfsvfs_t *zfsvfs, boolean_t unmounting) argument 1929 zfsvfs_t *zfsvfs = vfsp->vfs_data; local 2053 zfsvfs_t *zfsvfs = vfsp->vfs_data; local 2088 zfsvfs_t *zfsvfs = vfsp->vfs_data; local 2107 zfsvfs_t *zfsvfs = vfsp->vfs_data; local 2219 zfs_suspend_fs(zfsvfs_t *zfsvfs) argument 2237 zfs_resume_fs(zfsvfs_t *zfsvfs, const char *osname) argument 2315 zfsvfs_t *zfsvfs = vfsp->vfs_data; local 2408 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 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 498 zfs_fuid_create_cred(zfsvfs_t *zfsvfs, zfs_fuid_type_t type, cred_t *cr, zfs_fuid_info_t **fuidp) argument 555 zfs_fuid_create(zfsvfs_t *zfsvfs, uint64_t id, cred_t *cr, zfs_fuid_type_t type, zfs_fuid_info_t **fuidpp) argument 642 zfs_fuid_destroy(zfsvfs_t *zfsvfs) argument 704 zfs_groupmember(zfsvfs_t *zfsvfs, uint64_t id, cred_t *cr) argument 754 zfs_fuid_txhold(zfsvfs_t *zfsvfs, dmu_tx_t *tx) argument [all...] |
H A D | zfs_sa.c | 125 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 131 if (sa_lookup(zp->z_sa_hdl, SA_ZPL_SCANSTAMP(zfsvfs), 159 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 165 VERIFY(0 == sa_update(zp->z_sa_hdl, SA_ZPL_SCANSTAMP(zfsvfs), 182 VERIFY(0 == sa_update(zp->z_sa_hdl, SA_ZPL_FLAGS(zfsvfs), 200 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 237 SA_ADD_BULK_ATTR(bulk, count, SA_ZPL_MTIME(zfsvfs), NULL, &mtime, 16); 238 SA_ADD_BULK_ATTR(bulk, count, SA_ZPL_CTIME(zfsvfs), NULL, &ctime, 16); 239 SA_ADD_BULK_ATTR(bulk, count, SA_ZPL_CRTIME(zfsvfs), NULL, &crtime, 16); 240 SA_ADD_BULK_ATTR(bulk, count, SA_ZPL_MODE(zfsvfs), NUL [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 390 zfsvfs_t *zfsvfs = dzp->z_zfsvfs; local 458 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 472 zfs_unlinked_drain(zfsvfs_t *zfsvfs) argument 537 zfsvfs_t *zfsvfs = dzp->z_zfsvfs; local 589 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 708 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 811 zfsvfs_t *zfsvfs = dzp->z_zfsvfs; local 927 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 1015 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 1093 zfsvfs_t *zfsvfs = zdp->z_zfsvfs; local [all...] |
H A D | zfs_znode.c | 94 * Needed to close a small window in zfs_znode_move() that allows the zfsvfs to 243 zfsvfs_t *zfsvfs; local 254 zfsvfs = ozp->z_zfsvfs; 255 if (!POINTER_IS_VALID(zfsvfs)) { 262 * be unmounted and freed, and zfsvfs, though valid in the previous 267 if (zfsvfs != ozp->z_zfsvfs) { 279 rrw_enter(&zfsvfs->z_teardown_lock, RW_READER, FTAG); 280 if (zfsvfs->z_unmounted) { 281 ZFS_EXIT(zfsvfs); 288 mutex_enter(&zfsvfs 475 zfs_create_share_dir(zfsvfs_t *zfsvfs, dmu_tx_t *tx) argument 554 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 614 zfs_znode_alloc(zfsvfs_t *zfsvfs, dmu_buf_t *db, int blksz, dmu_object_type_t obj_type, sa_handle_t *hdl) argument 774 zfsvfs_t *zfsvfs = dzp->z_zfsvfs; local 1121 zfs_zget(zfsvfs_t *zfsvfs, uint64_t obj_num, znode_t **zpp) argument 1251 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 1354 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 1373 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 1405 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 1521 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 1600 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 1647 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 1731 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 1802 zfsvfs_t zfsvfs; local [all...] |
H A D | zfs_ctldir.c | 223 zfsvfs_t *zfsvfs = vp->v_vfsp->vfs_data; local 230 return (zfsvfs->z_shares_dir); 240 zfsctl_create(zfsvfs_t *zfsvfs) argument 246 ASSERT(zfsvfs->z_ctldir == NULL); 248 vp = gfs_root_create(sizeof (zfsctl_node_t), zfsvfs->z_vfs, 254 VERIFY(VFS_ROOT(zfsvfs->z_vfs, LK_EXCLUSIVE, &rvp) == 0); 255 VERIFY(0 == sa_lookup(VTOZ(rvp)->z_sa_hdl, SA_ZPL_CRTIME(zfsvfs), 267 zfsvfs->z_ctldir = vp; 278 zfsctl_destroy(zfsvfs_t *zfsvfs) argument 280 VN_RELE(zfsvfs 392 zfsvfs_t *zfsvfs = vp->v_vfsp->vfs_data; local 436 zfsvfs_t *zfsvfs = vp->v_vfsp->vfs_data; local 503 zfsvfs_t *zfsvfs = vp->v_vfsp->vfs_data; local 527 zfsvfs_t *zfsvfs = dvp->v_vfsp->vfs_data; local 756 zfsvfs_t *zfsvfs; local 824 zfsvfs_t *zfsvfs; local 881 zfsvfs_t *zfsvfs = dvp->v_vfsp->vfs_data; local 950 zfsvfs_t *zfsvfs = dvp->v_vfsp->vfs_data; local 1122 zfsvfs_t *zfsvfs = dvp->v_vfsp->vfs_data; local 1155 zfsvfs_t *zfsvfs = vp->v_vfsp->vfs_data; local 1212 zfsvfs_t *zfsvfs = vp->v_vfsp->vfs_data; local 1291 zfsvfs_t *zfsvfs = vp->v_vfsp->vfs_data; local 1322 zfsvfs_t *zfsvfs = vp->v_vfsp->vfs_data; local 1577 zfsvfs_t *zfsvfs = dvp->v_vfsp->vfs_data; local 1598 zfsvfs_t *zfsvfs = ap->a_vp->v_vfsp->vfs_data; local 1654 zfsvfs_t *zfsvfs = vfsp->vfs_data; local 1717 zfsvfs_t *zfsvfs = vfsp->vfs_data; local [all...] |
H A D | zfs_replay.c | 75 zfs_replay_error(zfsvfs_t *zfsvfs, lr_t *lr, boolean_t byteswap) argument 268 zfs_replay_create_acl(zfsvfs_t *zfsvfs, argument 305 if ((error = zfs_zget(zfsvfs, lr->lr_doid, &dzp)) != 0) 322 error = dmu_object_info(zfsvfs->z_os, lr->lr_foid, NULL); 333 zfsvfs->z_fuid_replay = zfs_replay_fuids(fuidstart, 349 if (zfsvfs->z_fuid_replay == NULL) { 352 zfsvfs->z_fuid_replay = 369 zfsvfs->z_fuid_replay = zfs_replay_fuids(fuidstart, 384 if (zfsvfs->z_fuid_replay == NULL) { 387 zfsvfs 417 zfs_replay_create(zfsvfs_t *zfsvfs, lr_create_t *lr, boolean_t byteswap) argument 549 zfs_replay_remove(zfsvfs_t *zfsvfs, lr_remove_t *lr, boolean_t byteswap) argument 600 zfs_replay_link(zfsvfs_t *zfsvfs, lr_link_t *lr, boolean_t byteswap) argument 640 zfs_replay_rename(zfsvfs_t *zfsvfs, lr_rename_t *lr, boolean_t byteswap) argument 710 zfs_replay_write(zfsvfs_t *zfsvfs, lr_write_t *lr, boolean_t byteswap) argument 776 zfs_replay_write2(zfsvfs_t *zfsvfs, lr_write_t *lr, boolean_t byteswap) argument 821 zfs_replay_truncate(zfsvfs_t *zfsvfs, lr_truncate_t *lr, boolean_t byteswap) argument 853 zfs_replay_setattr(zfsvfs_t *zfsvfs, lr_setattr_t *lr, boolean_t byteswap) argument 912 zfs_replay_acl_v0(zfsvfs_t *zfsvfs, lr_acl_v0_t *lr, boolean_t byteswap) argument 960 zfs_replay_acl(zfsvfs_t *zfsvfs, lr_acl_t *lr, boolean_t byteswap) argument [all...] |
H A D | zfs_vnops.c | 92 * This is done avoiding races using ZFS_ENTER(zfsvfs). 93 * A ZFS_EXIT(zfsvfs) is needed before all returns. Any znodes 121 * If dmu_tx_assign() returns ERESTART and zfsvfs->z_assign is TXG_NOWAIT, 138 * ZFS_ENTER(zfsvfs); // exit if unmounted 155 * ZFS_EXIT(zfsvfs); // finished in zfs 166 * ZFS_EXIT(zfsvfs); // finished in zfs 175 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 177 ZFS_ENTER(zfsvfs); 182 ZFS_EXIT(zfsvfs); 190 ZFS_EXIT(zfsvfs); 209 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 283 zfsvfs_t *zfsvfs; local 671 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 828 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 1218 zfsvfs_t *zfsvfs = arg; local 1344 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 1407 zfsvfs_t *zfsvfs = zdp->z_zfsvfs; local 1606 zfsvfs_t *zfsvfs = dzp->z_zfsvfs; local 1860 zfsvfs_t *zfsvfs = dzp->z_zfsvfs; local 2096 zfsvfs_t *zfsvfs = dzp->z_zfsvfs; local 2277 zfsvfs_t *zfsvfs = dzp->z_zfsvfs; local 2419 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 2719 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 2754 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 2979 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 3727 zfsvfs_t *zfsvfs = sdzp->z_zfsvfs; local 4099 zfsvfs_t *zfsvfs = dzp->z_zfsvfs; local 4248 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 4290 zfsvfs_t *zfsvfs = dzp->z_zfsvfs; local 4462 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 4583 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 4666 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 4742 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 4869 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 4954 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 5098 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 5138 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 5204 zfsvfs_t *zfsvfs; local 5287 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 5305 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 5340 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 5674 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 6160 zfsvfs_t *zfsvfs = VTOZ(vp)->z_zfsvfs; local 6366 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 6510 zfsvfs_t *zfsvfs = VTOZ(ap->a_vp)->z_zfsvfs; local 6579 zfsvfs_t *zfsvfs = VTOZ(ap->a_vp)->z_zfsvfs; local 6645 zfsvfs_t *zfsvfs = VTOZ(ap->a_vp)->z_zfsvfs; local 6712 zfsvfs_t *zfsvfs = VTOZ(ap->a_vp)->z_zfsvfs; 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, 1184 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 1198 SA_ADD_BULK_ATTR(bulk, count, SA_ZPL_MODE(zfsvfs), NUL 1469 zfs_restricted_update(zfsvfs_t *zfsvfs, zfs_acl_t *aclp, void *acep) argument 1500 zfs_acl_inherit(zfsvfs_t *zfsvfs, vtype_t vtype, zfs_acl_t *paclp, uint64_t mode, boolean_t *need_chmod) argument 1624 zfsvfs_t *zfsvfs = dzp->z_zfsvfs; local 1764 zfs_acl_ids_overquota(zfsvfs_t *zfsvfs, zfs_acl_ids_t *acl_ids) argument 1871 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 1931 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 2110 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 2247 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local [all...] |
H A D | zfs_ioctl.c | 574 * Get the zfsvfs; if there isn't one, then the dataset isn't 1414 * objset from the zfsvfs. 1424 zfsvfs_rele(zfsvfs_t *zfsvfs, void *tag) argument 1426 rrw_exit(&zfsvfs->z_teardown_lock, tag); 1428 if (zfsvfs->z_vfs) { 1429 VFS_RELE(zfsvfs->z_vfs); 1431 dmu_objset_disown(zfsvfs->z_os, zfsvfs); 1432 zfsvfs_free(zfsvfs); 2327 zfsvfs_t *zfsvfs; local 2415 zfsvfs_t *zfsvfs; local 3419 zfsvfs_t *zfsvfs; local 3566 zfsvfs_t *zfsvfs; local 4106 zfsvfs_t *zfsvfs = NULL; local 4539 zfsvfs_t *zfsvfs; local 4570 zfsvfs_t *zfsvfs; local 4608 zfsvfs_t *zfsvfs; local 4891 zfsvfs_t *zfsvfs = dzp->z_zfsvfs; local 4914 zfsvfs_t *zfsvfs; local [all...] |
/freebsd-10.0-release/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 143 extern int zfs_suspend_fs(zfsvfs_t *zfsvfs); 144 extern int zfs_resume_fs(zfsvfs_t *zfsvfs, const char *osname); 145 extern int zfs_userspace_one(zfsvfs_t *zfsvfs, zfs_userquota_prop_t type, 147 extern int zfs_userspace_many(zfsvfs_t *zfsvfs, zfs_userquota_prop_t type, 149 extern int zfs_set_userquota(zfsvfs_t *zfsvfs, zfs_userquota_prop_t type, 151 extern boolean_t zfs_owner_overquota(zfsvfs_t *zfsvfs, struct znode *, 153 extern boolean_t zfs_fuid_overquota(zfsvfs_t *zfsvfs, boolean_t isgroup, 155 extern int zfs_set_version(zfsvfs_t *zfsvfs, uint64_ [all...] |
H A D | zfs_znode.h | 182 struct zfsvfs *z_zfsvfs; 257 #define ZFS_ENTER(zfsvfs) \ 259 rrw_enter_read(&(zfsvfs)->z_teardown_lock, FTAG); \ 260 if ((zfsvfs)->z_unmounted) { \ 261 ZFS_EXIT(zfsvfs); \ 267 #define ZFS_ENTER_NOERROR(zfsvfs) \ 268 rrw_enter(&(zfsvfs)->z_teardown_lock, RW_READER, FTAG) 271 #define ZFS_EXIT(zfsvfs) rrw_exit(&(zfsvfs)->z_teardown_lock, FTAG) 284 #define ZFS_OBJ_MUTEX(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);
|