Home
last modified time | relevance | path

Searched refs:zfsvfs (Results 1 – 18 of 18) sorted by relevance

/titanic_44/usr/src/uts/common/fs/zfs/
H A Dzfs_vfsops.c155 zfsvfs_t *zfsvfs = vfsp->vfs_data; in zfs_sync() local
158 ZFS_ENTER(zfsvfs); in zfs_sync()
159 dp = dmu_objset_pool(zfsvfs->z_os); in zfs_sync()
166 ZFS_EXIT(zfsvfs); in zfs_sync()
170 if (zfsvfs->z_log != NULL) in zfs_sync()
171 zil_commit(zfsvfs->z_log, 0); in zfs_sync()
173 ZFS_EXIT(zfsvfs); in zfs_sync()
241 zfsvfs_t *zfsvfs = arg; in atime_changed_cb() local
244 zfsvfs->z_atime = TRUE; in atime_changed_cb()
245 vfs_clearmntopt(zfsvfs->z_vfs, MNTOPT_NOATIME); in atime_changed_cb()
[all …]
H A Dzfs_fuid.c199 zfs_fuid_init(zfsvfs_t *zfsvfs) in zfs_fuid_init() argument
201 rw_enter(&zfsvfs->z_fuid_lock, RW_WRITER); in zfs_fuid_init()
203 if (zfsvfs->z_fuid_loaded) { in zfs_fuid_init()
204 rw_exit(&zfsvfs->z_fuid_lock); in zfs_fuid_init()
208 zfs_fuid_avl_tree_create(&zfsvfs->z_fuid_idx, &zfsvfs->z_fuid_domain); in zfs_fuid_init()
210 (void) zap_lookup(zfsvfs->z_os, MASTER_NODE_OBJ, in zfs_fuid_init()
211 ZFS_FUID_TABLES, 8, 1, &zfsvfs->z_fuid_obj); in zfs_fuid_init()
212 if (zfsvfs->z_fuid_obj != 0) { in zfs_fuid_init()
213 zfsvfs->z_fuid_size = zfs_fuid_table_load(zfsvfs->z_os, in zfs_fuid_init()
214 zfsvfs->z_fuid_obj, &zfsvfs->z_fuid_idx, in zfs_fuid_init()
[all …]
H A Dzfs_znode.c247 zfsvfs_t *zfsvfs; in zfs_znode_move() local
258 zfsvfs = ozp->z_zfsvfs; in zfs_znode_move()
259 if (!POINTER_IS_VALID(zfsvfs)) { in zfs_znode_move()
271 if (zfsvfs != ozp->z_zfsvfs) { in zfs_znode_move()
283 rrm_enter(&zfsvfs->z_teardown_lock, RW_READER, FTAG); in zfs_znode_move()
284 if (zfsvfs->z_unmounted) { in zfs_znode_move()
285 ZFS_EXIT(zfsvfs); in zfs_znode_move()
292 mutex_enter(&zfsvfs->z_znodes_lock); in zfs_znode_move()
297 if (zfsvfs != ozp->z_zfsvfs) { in zfs_znode_move()
298 mutex_exit(&zfsvfs->z_znodes_lock); in zfs_znode_move()
[all …]
H A Dzfs_vnops.c193 zfsvfs_t *zfsvfs = zp->z_zfsvfs; in zfs_open() local
195 ZFS_ENTER(zfsvfs); in zfs_open()
200 ZFS_EXIT(zfsvfs); in zfs_open()
208 ZFS_EXIT(zfsvfs); in zfs_open()
217 ZFS_EXIT(zfsvfs); in zfs_open()
227 zfsvfs_t *zfsvfs = zp->z_zfsvfs; in zfs_close() local
235 ZFS_ENTER(zfsvfs); in zfs_close()
256 ZFS_EXIT(zfsvfs); in zfs_close()
315 zfsvfs_t *zfsvfs; in zfs_ioctl() local
341 zfsvfs = zp->z_zfsvfs; in zfs_ioctl()
[all …]
H A Dzfs_ctldir.c209 zfsvfs_t *zfsvfs = vp->v_vfsp->vfs_data; in zfsctl_root_inode_cb() local
216 return (zfsvfs->z_shares_dir); in zfsctl_root_inode_cb()
226 zfsctl_create(zfsvfs_t *zfsvfs) in zfsctl_create() argument
232 ASSERT(zfsvfs->z_ctldir == NULL); in zfsctl_create()
234 vp = gfs_root_create(sizeof (zfsctl_node_t), zfsvfs->z_vfs, in zfsctl_create()
240 VERIFY(VFS_ROOT(zfsvfs->z_vfs, &rvp) == 0); in zfsctl_create()
241 VERIFY(0 == sa_lookup(VTOZ(rvp)->z_sa_hdl, SA_ZPL_CRTIME(zfsvfs), in zfsctl_create()
253 zfsvfs->z_ctldir = vp; in zfsctl_create()
262 zfsctl_destroy(zfsvfs_t *zfsvfs) in zfsctl_destroy() argument
264 VN_RELE(zfsvfs->z_ctldir); in zfsctl_destroy()
[all …]
H A Dzfs_sa.c124 zfsvfs_t *zfsvfs = zp->z_zfsvfs; in zfs_sa_get_scanstamp() local
130 if (sa_lookup(zp->z_sa_hdl, SA_ZPL_SCANSTAMP(zfsvfs), in zfs_sa_get_scanstamp()
158 zfsvfs_t *zfsvfs = zp->z_zfsvfs; in zfs_sa_set_scanstamp() local
164 VERIFY(0 == sa_update(zp->z_sa_hdl, SA_ZPL_SCANSTAMP(zfsvfs), in zfs_sa_set_scanstamp()
181 VERIFY(0 == sa_update(zp->z_sa_hdl, SA_ZPL_FLAGS(zfsvfs), in zfs_sa_set_scanstamp()
199 zfsvfs_t *zfsvfs = zp->z_zfsvfs; in zfs_sa_upgrade() local
236 SA_ADD_BULK_ATTR(bulk, count, SA_ZPL_MTIME(zfsvfs), NULL, &mtime, 16); in zfs_sa_upgrade()
237 SA_ADD_BULK_ATTR(bulk, count, SA_ZPL_CTIME(zfsvfs), NULL, &ctime, 16); in zfs_sa_upgrade()
238 SA_ADD_BULK_ATTR(bulk, count, SA_ZPL_CRTIME(zfsvfs), NULL, &crtime, 16); in zfs_sa_upgrade()
239 SA_ADD_BULK_ATTR(bulk, count, SA_ZPL_MODE(zfsvfs), NULL, &mode, 8); in zfs_sa_upgrade()
[all …]
H A Dzfs_dir.c65 zfs_match_find(zfsvfs_t *zfsvfs, znode_t *dzp, char *name, boolean_t exact, in zfs_match_find() argument
70 if (zfsvfs->z_norm) { in zfs_match_find()
86 error = zap_lookup_norm(zfsvfs->z_os, dzp->z_id, name, 8, 1, in zfs_match_find()
91 error = zap_lookup(zfsvfs->z_os, dzp->z_id, name, 8, 1, zoid); in zfs_match_find()
140 zfsvfs_t *zfsvfs = dzp->z_zfsvfs; in zfs_dirent_lock() local
183 ((zfsvfs->z_case == ZFS_CASE_INSENSITIVE) && (flag & ZCIEXACT)) || in zfs_dirent_lock()
184 ((zfsvfs->z_case == ZFS_CASE_MIXED) && !(flag & ZCILOOK)); in zfs_dirent_lock()
196 update = !zfsvfs->z_norm || in zfs_dirent_lock()
197 ((zfsvfs->z_case == ZFS_CASE_MIXED) && in zfs_dirent_lock()
198 !(zfsvfs->z_norm & ~U8_TEXTPREP_TOUPPER) && !(flag & ZCILOOK)); in zfs_dirent_lock()
[all …]
H A Dzfs_replay.c72 zfs_replay_error(zfsvfs_t *zfsvfs, lr_t *lr, boolean_t byteswap) in zfs_replay_error() argument
265 zfs_replay_create_acl(zfsvfs_t *zfsvfs, in zfs_replay_create_acl() argument
302 if ((error = zfs_zget(zfsvfs, lr->lr_doid, &dzp)) != 0) in zfs_replay_create_acl()
319 error = dmu_object_info(zfsvfs->z_os, lr->lr_foid, NULL); in zfs_replay_create_acl()
330 zfsvfs->z_fuid_replay = zfs_replay_fuids(fuidstart, in zfs_replay_create_acl()
346 if (zfsvfs->z_fuid_replay == NULL) { in zfs_replay_create_acl()
349 zfsvfs->z_fuid_replay = in zfs_replay_create_acl()
362 zfsvfs->z_fuid_replay = zfs_replay_fuids(fuidstart, in zfs_replay_create_acl()
377 if (zfsvfs->z_fuid_replay == NULL) { in zfs_replay_create_acl()
380 zfsvfs->z_fuid_replay = in zfs_replay_create_acl()
[all …]
H A Dzfs_acl.c373 zfsvfs_t *zfsvfs = zp->z_zfsvfs; in zfs_acl_znode_info() local
380 if ((error = sa_size(zp->z_sa_hdl, SA_ZPL_DACL_ACES(zfsvfs), in zfs_acl_znode_info()
384 if ((error = sa_lookup(zp->z_sa_hdl, SA_ZPL_DACL_COUNT(zfsvfs), in zfs_acl_znode_info()
389 if ((error = sa_lookup(zp->z_sa_hdl, SA_ZPL_ZNODE_ACL(zfsvfs), in zfs_acl_znode_info()
660 zfs_copy_ace_2_fuid(zfsvfs_t *zfsvfs, vtype_t obj_type, zfs_acl_t *aclp, in zfs_copy_ace_2_fuid() argument
678 aceptr->z_fuid = zfs_fuid_create(zfsvfs, acep->a_who, in zfs_copy_ace_2_fuid()
722 zfs_copy_fuid_2_ace(zfsvfs_t *zfsvfs, zfs_acl_t *aclp, cred_t *cr, in zfs_copy_fuid_2_ace() argument
765 acep->a_who = zfs_fuid_map_id(zfsvfs, who, in zfs_copy_fuid_2_ace()
1187 zfsvfs_t *zfsvfs = zp->z_zfsvfs; in zfs_aclset_common() local
1201 SA_ADD_BULK_ATTR(bulk, count, SA_ZPL_MODE(zfsvfs), NULL, in zfs_aclset_common()
[all …]
H A Dzfs_ioctl.c1470 zfsvfs_rele(zfsvfs_t *zfsvfs, void *tag) in zfsvfs_rele() argument
1472 rrm_exit(&zfsvfs->z_teardown_lock, tag); in zfsvfs_rele()
1474 if (zfsvfs->z_vfs) { in zfsvfs_rele()
1475 VFS_RELE(zfsvfs->z_vfs); in zfsvfs_rele()
1477 dmu_objset_disown(zfsvfs->z_os, zfsvfs); in zfsvfs_rele()
1478 zfsvfs_free(zfsvfs); in zfsvfs_rele()
2399 zfsvfs_t *zfsvfs; in zfs_prop_set_userquota() local
2424 err = zfsvfs_hold(dsname, FTAG, &zfsvfs, B_FALSE); in zfs_prop_set_userquota()
2426 err = zfs_set_userquota(zfsvfs, type, domain, rid, quota); in zfs_prop_set_userquota()
2427 zfsvfs_rele(zfsvfs, FTAG); in zfs_prop_set_userquota()
[all …]
/titanic_44/usr/src/uts/common/fs/zfs/sys/
H A Dzfs_vfsops.h41 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, const char *osname);
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_t newvers);
[all …]
H A Dzfs_znode.h170 struct zfsvfs *z_zfsvfs;
227 #define ZFS_ENTER(zfsvfs) \ argument
229 rrm_enter_read(&(zfsvfs)->z_teardown_lock, FTAG); \
230 if ((zfsvfs)->z_unmounted) { \
231 ZFS_EXIT(zfsvfs); \
237 #define ZFS_EXIT(zfsvfs) rrm_exit(&(zfsvfs)->z_teardown_lock, FTAG) argument
250 #define ZFS_OBJ_MUTEX(zfsvfs, obj_num) \ argument
251 (&(zfsvfs)->z_hold_mtx[ZFS_OBJ_HASH(obj_num)])
252 #define ZFS_OBJ_HOLD_ENTER(zfsvfs, obj_num) \ argument
253 mutex_enter(ZFS_OBJ_MUTEX((zfsvfs), (obj_num)))
[all …]
H A Dzfs_acl.h204 struct zfsvfs;
210 boolean_t zfs_acl_ids_overquota(struct zfsvfs *, zfs_acl_ids_t *);
227 int zfs_vsec_2_aclp(struct zfsvfs *, vtype_t, vsecattr_t *, cred_t *,
H A Dzfs_fuid.h118 extern const char *zfs_fuid_find_by_idx(zfsvfs_t *zfsvfs, uint32_t idx);
119 extern void zfs_fuid_txhold(zfsvfs_t *zfsvfs, dmu_tx_t *tx);
H A Dzfs_dir.h65 extern void zfs_unlinked_drain(zfsvfs_t *zfsvfs);
/titanic_44/usr/src/uts/common/fs/getgen/
H A Dgetgen.c39 zfsvfs_t *zfsvfs = NULL; in gg_ioc_get_gen() local
63 zfsvfs = zp->z_zfsvfs; in gg_ioc_get_gen()
64 rrm_enter_read(&zfsvfs->z_teardown_lock, FTAG); in gg_ioc_get_gen()
74 ds_phys = dsl_dataset_phys(zfsvfs->z_os->os_dsl_dataset); in gg_ioc_get_gen()
77 dsl_dataset_name(zfsvfs->z_os->os_dsl_dataset, gg.dataset); in gg_ioc_get_gen()
84 osp = zfsvfs->z_os; in gg_ioc_get_gen()
125 if (zfsvfs) in gg_ioc_get_gen()
126 ZFS_EXIT(zfsvfs); in gg_ioc_get_gen()
/titanic_44/usr/src/uts/common/fs/zev/
H A Dzev_callbacks.c70 zfsvfs_t *zfsvfs = (zfsvfs_t *)vfs->vfs_data; in zev_zfs_mount_cb() local
71 if (zfsvfs->z_os->os_dsl_dataset->ds_is_snapshot) in zev_zfs_mount_cb()
73 if (zev_skip_pool(zfsvfs->z_os)) in zev_zfs_mount_cb()
75 if (zev_skip_fs(zfsvfs)) in zev_zfs_mount_cb()
84 if (zfs_zget(zfsvfs, zfsvfs->z_root, &zp_root) != 0) { in zev_zfs_mount_cb()
91 tx = dmu_tx_create(zfsvfs->z_os); in zev_zfs_mount_cb()
110 rec->guid = dsl_dataset_phys(zfsvfs->z_os->os_dsl_dataset)->ds_guid; in zev_zfs_mount_cb()
135 zfsvfs_t *zfsvfs = (zfsvfs_t *)vfs->vfs_data; in zev_zfs_umount_cb() local
136 if (zfsvfs->z_os->os_dsl_dataset->ds_is_snapshot) in zev_zfs_umount_cb()
138 if (zev_skip_pool(zfsvfs->z_os)) in zev_zfs_umount_cb()
[all …]
H A Dzev_checksums.c724 struct zfsvfs *zfsvfs = NULL; in zev_ioc_get_signatures() local
738 zfsvfs = zp->z_zfsvfs; in zev_ioc_get_signatures()
739 rrm_enter_read(&zfsvfs->z_teardown_lock, FTAG); in zev_ioc_get_signatures()
792 if (zfsvfs) in zev_ioc_get_signatures()
793 ZFS_EXIT(zfsvfs); in zev_ioc_get_signatures()