Searched refs:zfsvfs (Results 1 - 15 of 15) sorted by relevance

/freebsd-10.3-release/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
H A Dzfs_vfsops.c101 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
285 zfsvfs_t *zfsvfs = arg; local
303 zfsvfs_t *zfsvfs = arg; local
319 zfsvfs_t *zfsvfs = arg; local
343 zfsvfs_t *zfsvfs = arg; local
356 zfsvfs_t *zfsvfs = arg; local
364 zfsvfs_t *zfsvfs = arg; local
372 zfsvfs_t *zfsvfs = arg; local
380 zfsvfs_t *zfsvfs = arg; local
390 zfsvfs_t *zfsvfs = NULL; local
620 fuidstr_to_sid(zfsvfs_t *zfsvfs, const char *fuidstr, char *domainbuf, int buflen, uid_t *ridp) argument
637 zfs_userquota_prop_to_obj(zfsvfs_t *zfsvfs, zfs_userquota_prop_t type) argument
653 zfs_userspace_many(zfsvfs_t *zfsvfs, zfs_userquota_prop_t type, uint64_t *cookiep, void *vbuf, uint64_t *bufsizep) argument
698 id_to_fuidstr(zfsvfs_t *zfsvfs, const char *domain, uid_t rid, char *buf, boolean_t addok) argument
715 zfs_userspace_one(zfsvfs_t *zfsvfs, zfs_userquota_prop_t type, const char *domain, uint64_t rid, uint64_t *valp) argument
742 zfs_set_userquota(zfsvfs_t *zfsvfs, zfs_userquota_prop_t type, const char *domain, uint64_t rid, uint64_t quota) argument
803 zfs_fuid_overquota(zfsvfs_t *zfsvfs, boolean_t isgroup, uint64_t fuid) argument
827 zfs_owner_overquota(zfsvfs_t *zfsvfs, znode_t *zp, boolean_t isgroup) argument
846 zfsvfs_t *zfsvfs; local
985 zfsvfs_setup(zfsvfs_t *zfsvfs, boolean_t mounting) argument
1066 zfsvfs_free(zfsvfs_t *zfsvfs) argument
1093 zfs_set_fuid_feature(zfsvfs_t *zfsvfs) argument
1121 zfsvfs_t *zfsvfs; local
1218 zfs_unregister_callbacks(zfsvfs_t *zfsvfs) argument
1223 dsl_prop_unregister_all(dmu_objset_ds(os), zfsvfs); local
1419 zfsvfs_t *zfsvfs = NULL; local
1647 zfsvfs_t *zfsvfs = vfsp->vfs_data; local
1694 zfsvfs_t *zfsvfs = vfsp->vfs_data; local
1752 zfsvfs_t *zfsvfs = vfsp->vfs_data; local
1782 zfsvfs_teardown(zfsvfs_t *zfsvfs, boolean_t unmounting) argument
1879 zfsvfs_t *zfsvfs = vfsp->vfs_data; local
2003 zfsvfs_t *zfsvfs = vfsp->vfs_data; local
2036 zfsvfs_t *zfsvfs = vfsp->vfs_data; local
2055 zfsvfs_t *zfsvfs = vfsp->vfs_data; local
2167 zfs_suspend_fs(zfsvfs_t *zfsvfs) argument
2185 zfs_resume_fs(zfsvfs_t *zfsvfs, const char *osname) argument
2265 zfsvfs_t *zfsvfs = vfsp->vfs_data; local
2358 zfs_set_version(zfsvfs_t *zfsvfs, uint64_t newvers) argument
[all...]
H A Dzfs_fuid.c49 * 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 Dzfs_sa.c124 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 Dzfs_dir.c65 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
590 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local
709 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local
812 zfsvfs_t *zfsvfs = dzp->z_zfsvfs; local
928 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local
1014 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local
1092 zfsvfs_t *zfsvfs = zdp->z_zfsvfs; local
[all...]
H A Dzfs_znode.c95 * Needed to close a small window in zfs_znode_move() that allows the zfsvfs to
244 zfsvfs_t *zfsvfs; local
255 zfsvfs = ozp->z_zfsvfs;
256 if (!POINTER_IS_VALID(zfsvfs)) {
263 * be unmounted and freed, and zfsvfs, though valid in the previous
268 if (zfsvfs != ozp->z_zfsvfs) {
280 rrm_enter(&zfsvfs->z_teardown_lock, RW_READER, FTAG);
281 if (zfsvfs->z_unmounted) {
282 ZFS_EXIT(zfsvfs);
289 mutex_enter(&zfsvfs
476 zfs_create_share_dir(zfsvfs_t *zfsvfs, dmu_tx_t *tx) argument
555 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
615 zfs_znode_alloc(zfsvfs_t *zfsvfs, dmu_buf_t *db, int blksz, dmu_object_type_t obj_type, sa_handle_t *hdl) argument
777 zfsvfs_t *zfsvfs = dzp->z_zfsvfs; local
1119 zfs_zget(zfsvfs_t *zfsvfs, uint64_t obj_num, znode_t **zpp) argument
1250 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local
1363 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local
1382 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local
1414 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local
1530 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local
1608 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local
1655 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local
1734 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local
1807 zfsvfs_t *zfsvfs; local
[all...]
H A Dzfs_ctldir.c224 zfsvfs_t *zfsvfs = vp->v_vfsp->vfs_data; local
231 return (zfsvfs->z_shares_dir);
241 zfsctl_create(zfsvfs_t *zfsvfs) argument
247 ASSERT(zfsvfs->z_ctldir == NULL);
249 vp = gfs_root_create(sizeof (zfsctl_node_t), zfsvfs->z_vfs,
255 VERIFY(VFS_ROOT(zfsvfs->z_vfs, LK_EXCLUSIVE, &rvp) == 0);
256 VERIFY(0 == sa_lookup(VTOZ(rvp)->z_sa_hdl, SA_ZPL_CRTIME(zfsvfs),
268 zfsvfs->z_ctldir = vp;
279 zfsctl_destroy(zfsvfs_t *zfsvfs) argument
281 VN_RELE(zfsvfs
393 zfsvfs_t *zfsvfs = vp->v_vfsp->vfs_data; local
437 zfsvfs_t *zfsvfs = vp->v_vfsp->vfs_data; local
504 zfsvfs_t *zfsvfs = vp->v_vfsp->vfs_data; local
528 zfsvfs_t *zfsvfs = dvp->v_vfsp->vfs_data; local
769 zfsvfs_t *zfsvfs; local
837 zfsvfs_t *zfsvfs; local
894 zfsvfs_t *zfsvfs = dvp->v_vfsp->vfs_data; local
963 zfsvfs_t *zfsvfs = dvp->v_vfsp->vfs_data; local
1134 zfsvfs_t *zfsvfs = dvp->v_vfsp->vfs_data; local
1168 zfsvfs_t *zfsvfs = vp->v_vfsp->vfs_data; local
1225 zfsvfs_t *zfsvfs = vp->v_vfsp->vfs_data; local
1304 zfsvfs_t *zfsvfs = vp->v_vfsp->vfs_data; local
1335 zfsvfs_t *zfsvfs = vp->v_vfsp->vfs_data; local
1593 zfsvfs_t *zfsvfs = dvp->v_vfsp->vfs_data; local
1621 zfsvfs_t *zfsvfs = ap->a_vp->v_vfsp->vfs_data; local
1677 zfsvfs_t *zfsvfs = vfsp->vfs_data; local
1740 zfsvfs_t *zfsvfs = vfsp->vfs_data; local
[all...]
H A Dzfs_vnops.c91 * This is done avoiding races using ZFS_ENTER(zfsvfs).
92 * A ZFS_EXIT(zfsvfs) is needed before all returns. Any znodes
127 * If dmu_tx_assign() returns ERESTART and zfsvfs->z_assign is TXG_NOWAIT,
148 * ZFS_ENTER(zfsvfs); // exit if unmounted
166 * ZFS_EXIT(zfsvfs); // finished in zfs
177 * ZFS_EXIT(zfsvfs); // finished in zfs
186 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local
188 ZFS_ENTER(zfsvfs);
193 ZFS_EXIT(zfsvfs);
201 ZFS_EXIT(zfsvfs);
220 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local
299 zfsvfs_t *zfsvfs; local
701 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local
858 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local
1248 zfsvfs_t *zfsvfs = arg; local
1374 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local
1437 zfsvfs_t *zfsvfs = zdp->z_zfsvfs; local
1636 zfsvfs_t *zfsvfs = dzp->z_zfsvfs; local
1898 zfsvfs_t *zfsvfs = dzp->z_zfsvfs; local
2143 zfsvfs_t *zfsvfs = dzp->z_zfsvfs; local
2335 zfsvfs_t *zfsvfs = dzp->z_zfsvfs; local
2479 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local
2780 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local
2815 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local
3040 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local
3784 zfsvfs_t *zfsvfs; local
4161 zfsvfs_t *zfsvfs = dzp->z_zfsvfs; local
4321 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local
4363 zfsvfs_t *zfsvfs = dzp->z_zfsvfs; local
4537 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local
4652 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local
4735 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local
4811 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local
4938 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local
5023 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local
5167 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local
5207 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local
5273 zfsvfs_t *zfsvfs; local
5356 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local
5374 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local
5409 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local
5743 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local
5879 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local
6397 zfsvfs_t *zfsvfs = VTOZ(vp)->z_zfsvfs; local
6603 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local
6747 zfsvfs_t *zfsvfs = VTOZ(ap->a_vp)->z_zfsvfs; local
6816 zfsvfs_t *zfsvfs = VTOZ(ap->a_vp)->z_zfsvfs; local
6884 zfsvfs_t *zfsvfs = VTOZ(ap->a_vp)->z_zfsvfs; local
6951 zfsvfs_t *zfsvfs = VTOZ(ap->a_vp)->z_zfsvfs; local
[all...]
H A Dzfs_replay.c75 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 Dzfs_acl.c370 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 Dzfs_ioctl.c571 * Get the zfsvfs; if there isn't one, then the dataset isn't
1469 * objset from the zfsvfs.
1479 zfsvfs_rele(zfsvfs_t *zfsvfs, void *tag) argument
1481 rrm_exit(&zfsvfs->z_teardown_lock, tag);
1483 if (zfsvfs->z_vfs) {
1484 VFS_RELE(zfsvfs->z_vfs);
1486 dmu_objset_disown(zfsvfs->z_os, zfsvfs);
1487 zfsvfs_free(zfsvfs);
2382 zfsvfs_t *zfsvfs; local
2484 zfsvfs_t *zfsvfs; local
3459 zfsvfs_t *zfsvfs; local
3707 zfsvfs_t *zfsvfs; local
4319 zfsvfs_t *zfsvfs = NULL; local
4762 zfsvfs_t *zfsvfs; local
4793 zfsvfs_t *zfsvfs; local
4831 zfsvfs_t *zfsvfs; local
5119 zfsvfs_t *zfsvfs = dzp->z_zfsvfs; local
5142 zfsvfs_t *zfsvfs; local
[all...]
/freebsd-10.3-release/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/
H A Dzfs_vfsops.h41 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 Dzfs_znode.h180 struct zfsvfs *z_zfsvfs;
255 #define ZFS_ENTER(zfsvfs) \
257 rrm_enter_read(&(zfsvfs)->z_teardown_lock, FTAG); \
258 if ((zfsvfs)->z_unmounted) { \
259 ZFS_EXIT(zfsvfs); \
265 #define ZFS_EXIT(zfsvfs) rrm_exit(&(zfsvfs)->z_teardown_lock, FTAG)
278 #define ZFS_OBJ_MUTEX(zfsvfs, obj_num) \
279 (&(zfsvfs)->z_hold_mtx[ZFS_OBJ_HASH(obj_num)])
280 #define ZFS_OBJ_HOLD_ENTER(zfsvfs, obj_nu
[all...]
H A Dzfs_fuid.h119 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 Dzfs_acl.h203 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 Dzfs_dir.h65 extern void zfs_unlinked_drain(zfsvfs_t *zfsvfs);

Completed in 211 milliseconds