Home
last modified time | relevance | path

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

/netbsd-src/external/cddl/osnet/dist/uts/common/fs/zfs/
H A Dzfs_vfsops.c104 static void zfs_objset_close(zfsvfs_t *zfsvfs);
209 zfsvfs_t *zfsvfs = vfsp->vfs_data; in zfs_netbsd_sync() local
230 ZFS_ENTER(zfsvfs); in zfs_netbsd_sync()
232 tx = dmu_tx_create(zfsvfs->z_os); in zfs_netbsd_sync()
239 (void) sa_update(zp->z_sa_hdl, SA_ZPL_ATIME(zfsvfs), in zfs_netbsd_sync()
244 ZFS_EXIT(zfsvfs); in zfs_netbsd_sync()
259 zfsvfs_t *zfsvfs; in zfs_netbsd_vptofh() local
270 zfsvfs = zp->z_zfsvfs; in zfs_netbsd_vptofh()
273 ZFS_ENTER(zfsvfs); in zfs_netbsd_vptofh()
276 if ((error = sa_lookup(zp->z_sa_hdl, SA_ZPL_GEN(zfsvfs), in zfs_netbsd_vptofh()
[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.c249 zfsvfs_t *zfsvfs; in zfs_znode_move() local
260 zfsvfs = ozp->z_zfsvfs; in zfs_znode_move()
261 if (!POINTER_IS_VALID(zfsvfs)) { in zfs_znode_move()
273 if (zfsvfs != ozp->z_zfsvfs) { in zfs_znode_move()
285 rrm_enter(&zfsvfs->z_teardown_lock, RW_READER, FTAG); in zfs_znode_move()
286 if (zfsvfs->z_unmounted) { in zfs_znode_move()
287 ZFS_EXIT(zfsvfs); in zfs_znode_move()
294 mutex_enter(&zfsvfs->z_znodes_lock); in zfs_znode_move()
299 if (zfsvfs != ozp->z_zfsvfs) { in zfs_znode_move()
300 mutex_exit(&zfsvfs->z_znodes_lock); in zfs_znode_move()
[all …]
H A Dzfs_dir.c67 zfs_match_find(zfsvfs_t *zfsvfs, znode_t *dzp, const char *name, in zfs_match_find() argument
72 if (zfsvfs->z_norm) { in zfs_match_find()
79 error = zap_lookup_norm(zfsvfs->z_os, dzp->z_id, name, 8, 1, in zfs_match_find()
82 error = zap_lookup(zfsvfs->z_os, dzp->z_id, name, 8, 1, zoid); in zfs_match_find()
112 zfsvfs_t *zfsvfs = dzp->z_zfsvfs; in zfs_dirent_lookup() local
144 exact = zfsvfs->z_case == ZFS_CASE_MIXED; in zfs_dirent_lookup()
149 error = sa_lookup(dzp->z_sa_hdl, SA_ZPL_XATTR(zfsvfs), &zoid, in zfs_dirent_lookup()
154 error = zfs_match_find(zfsvfs, dzp, name, exact, &zoid); in zfs_dirent_lookup()
164 error = zfs_zget(zfsvfs, zoid, zpp); in zfs_dirent_lookup()
176 zfsvfs_t *zfsvfs = dzp->z_zfsvfs; in zfs_dd_lookup() local
[all …]
H A Dzfs_vnops.c201 zfsvfs_t *zfsvfs = zp->z_zfsvfs; in zfs_open() local
203 ZFS_ENTER(zfsvfs); in zfs_open()
208 ZFS_EXIT(zfsvfs); in zfs_open()
216 ZFS_EXIT(zfsvfs); in zfs_open()
225 ZFS_EXIT(zfsvfs); in zfs_open()
235 zfsvfs_t *zfsvfs = zp->z_zfsvfs; in zfs_close() local
243 ZFS_ENTER(zfsvfs); in zfs_close()
255 ZFS_EXIT(zfsvfs); in zfs_close()
314 zfsvfs_t *zfsvfs; in zfs_ioctl() local
343 zfsvfs = zp->z_zfsvfs; in zfs_ioctl()
[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
231 SA_ADD_BULK_ATTR(bulk, count, SA_ZPL_MTIME(zfsvfs), NULL, &mtime, 16); in zfs_sa_upgrade()
232 SA_ADD_BULK_ATTR(bulk, count, SA_ZPL_CTIME(zfsvfs), NULL, &ctime, 16); in zfs_sa_upgrade()
233 SA_ADD_BULK_ATTR(bulk, count, SA_ZPL_CRTIME(zfsvfs), NULL, &crtime, 16); in zfs_sa_upgrade()
234 SA_ADD_BULK_ATTR(bulk, count, SA_ZPL_MODE(zfsvfs), NULL, &mode, 8); in zfs_sa_upgrade()
[all …]
H A Dzfs_ctldir.c341 zfsctl_create(zfsvfs_t *zfsvfs) in zfsctl_create() argument
348 ASSERT(zfsvfs->z_ctldir == NULL); in zfsctl_create()
356 VERIFY(VFS_ROOT(zfsvfs->z_vfs, LK_EXCLUSIVE, &rvp) == 0); in zfsctl_create()
357 VERIFY(0 == sa_lookup(VTOZ(rvp)->z_sa_hdl, SA_ZPL_CRTIME(zfsvfs), in zfsctl_create()
362 zfsvfs->z_ctldir = dot_zfs; in zfsctl_create()
371 zfsctl_destroy(zfsvfs_t *zfsvfs) in zfsctl_destroy() argument
373 sfs_destroy_node(zfsvfs->z_ctldir->snapdir); in zfsctl_destroy()
374 sfs_destroy_node((sfs_node_t *)zfsvfs->z_ctldir); in zfsctl_destroy()
375 zfsvfs->z_ctldir = NULL; in zfsctl_destroy()
427 zfsctl_root(zfsvfs_t *zfsvfs, int flags, vnode_t **vpp) in zfsctl_root() argument
[all …]
H A Dzfs_replay.c75 zfs_replay_error(zfsvfs_t *zfsvfs, lr_t *lr, boolean_t byteswap) in zfs_replay_error() argument
268 zfs_replay_create_acl(zfsvfs_t *zfsvfs, in zfs_replay_create_acl() argument
305 if ((error = zfs_zget(zfsvfs, lr->lr_doid, &dzp)) != 0) in zfs_replay_create_acl()
322 error = dmu_object_info(zfsvfs->z_os, lr->lr_foid, NULL); in zfs_replay_create_acl()
333 zfsvfs->z_fuid_replay = zfs_replay_fuids(fuidstart, in zfs_replay_create_acl()
349 if (zfsvfs->z_fuid_replay == NULL) { in zfs_replay_create_acl()
352 zfsvfs->z_fuid_replay = in zfs_replay_create_acl()
369 zfsvfs->z_fuid_replay = zfs_replay_fuids(fuidstart, in zfs_replay_create_acl()
384 if (zfsvfs->z_fuid_replay == NULL) { in zfs_replay_create_acl()
387 zfsvfs->z_fuid_replay = in zfs_replay_create_acl()
[all …]
H A Dzfs_acl.c370 zfsvfs_t *zfsvfs = zp->z_zfsvfs; in zfs_acl_znode_info() local
377 if ((error = sa_size(zp->z_sa_hdl, SA_ZPL_DACL_ACES(zfsvfs), in zfs_acl_znode_info()
381 if ((error = sa_lookup(zp->z_sa_hdl, SA_ZPL_DACL_COUNT(zfsvfs), in zfs_acl_znode_info()
386 if ((error = sa_lookup(zp->z_sa_hdl, SA_ZPL_ZNODE_ACL(zfsvfs), in zfs_acl_znode_info()
657 zfs_copy_ace_2_fuid(zfsvfs_t *zfsvfs, vtype_t obj_type, zfs_acl_t *aclp, in zfs_copy_ace_2_fuid() argument
675 aceptr->z_fuid = zfs_fuid_create(zfsvfs, acep->a_who, in zfs_copy_ace_2_fuid()
719 zfs_copy_fuid_2_ace(zfsvfs_t *zfsvfs, zfs_acl_t *aclp, cred_t *cr, in zfs_copy_fuid_2_ace() argument
762 acep->a_who = zfs_fuid_map_id(zfsvfs, who, in zfs_copy_fuid_2_ace()
1167 zfsvfs_t *zfsvfs = zp->z_zfsvfs; in zfs_aclset_common() local
1181 SA_ADD_BULK_ATTR(bulk, count, SA_ZPL_MODE(zfsvfs), NULL, in zfs_aclset_common()
[all …]
H A Dzfs_ioctl.c1529 zfsvfs_rele(zfsvfs_t *zfsvfs, void *tag) in zfsvfs_rele() argument
1531 rrm_exit(&zfsvfs->z_teardown_lock, tag); in zfsvfs_rele()
1533 if (zfsvfs->z_vfs) { in zfsvfs_rele()
1535 VFS_RELE(zfsvfs->z_vfs); in zfsvfs_rele()
1537 vfs_unbusy(zfsvfs->z_vfs); in zfsvfs_rele()
1540 dmu_objset_disown(zfsvfs->z_os, zfsvfs); in zfsvfs_rele()
1541 zfsvfs_free(zfsvfs); in zfsvfs_rele()
2436 zfsvfs_t *zfsvfs; in zfs_prop_set_userquota() local
2461 err = zfsvfs_hold(dsname, FTAG, &zfsvfs, B_FALSE); in zfs_prop_set_userquota()
2463 err = zfs_set_userquota(zfsvfs, type, domain, rid, quota); in zfs_prop_set_userquota()
[all …]
/netbsd-src/external/cddl/osnet/dist/uts/common/fs/zfs/sys/
H A Dzfs_vfsops.h41 typedef struct zfsvfs zfsvfs_t;
44 struct zfsvfs { struct
144 extern int zfs_suspend_fs(zfsvfs_t *zfsvfs);
145 extern int zfs_resume_fs(zfsvfs_t *zfsvfs, struct dsl_dataset *ds);
146 extern int zfs_userspace_one(zfsvfs_t *zfsvfs, zfs_userquota_prop_t type,
148 extern int zfs_userspace_many(zfsvfs_t *zfsvfs, zfs_userquota_prop_t type,
150 extern int zfs_set_userquota(zfsvfs_t *zfsvfs, zfs_userquota_prop_t type,
152 extern boolean_t zfs_owner_overquota(zfsvfs_t *zfsvfs, struct znode *,
154 extern boolean_t zfs_fuid_overquota(zfsvfs_t *zfsvfs, boolean_t isgroup,
156 extern int zfs_set_version(zfsvfs_t *zfsvfs, uint64_t newvers);
[all …]
H A Dzfs_znode.h187 struct zfsvfs *z_zfsvfs;
267 #define ZFS_ENTER(zfsvfs) \ argument
269 rrm_enter_read(&(zfsvfs)->z_teardown_lock, FTAG); \
270 if ((zfsvfs)->z_unmounted) { \
271 ZFS_EXIT(zfsvfs); \
277 #define ZFS_EXIT(zfsvfs) rrm_exit(&(zfsvfs)->z_teardown_lock, FTAG) argument
290 #define ZFS_OBJ_MUTEX(zfsvfs, obj_num) \ argument
291 (&(zfsvfs)->z_hold_mtx[ZFS_OBJ_HASH(obj_num)])
292 #define ZFS_OBJ_HOLD_ENTER(zfsvfs, obj_num) \ argument
293 mutex_enter(ZFS_OBJ_MUTEX((zfsvfs), (obj_num)))
[all …]
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_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_dir.h65 extern void zfs_unlinked_drain(zfsvfs_t *zfsvfs);
/netbsd-src/usr.bin/fstat/
H A Dzfs_znode.h68 struct zfsvfs *z_zfsvfs;