Home
last modified time | relevance | path

Searched refs:z_os (Results 1 – 25 of 27) sorted by relevance

12

/freebsd/sys/contrib/openzfs/module/zfs/
H A Dzfs_quota.c173 if (!dmu_objset_userspace_present(zfsvfs->z_os)) in zfs_userspace_many()
179 !dmu_objset_projectquota_present(zfsvfs->z_os)) in zfs_userspace_many()
186 !dmu_objset_userobjspace_present(zfsvfs->z_os)) in zfs_userspace_many()
200 for (zap_cursor_init_serialized(&zc, zfsvfs->z_os, obj, *cookiep); in zfs_userspace_many()
243 if (!dmu_objset_userspace_present(zfsvfs->z_os)) in zfs_userspace_one()
250 !dmu_objset_userobjspace_present(zfsvfs->z_os)) in zfs_userspace_one()
256 if (!dmu_objset_projectquota_present(zfsvfs->z_os)) in zfs_userspace_one()
277 err = zap_lookup(zfsvfs->z_os, obj, buf, 8, 1, valp); in zfs_userspace_one()
310 if (!dmu_objset_projectquota_enabled(zfsvfs->z_os)) in zfs_set_userquota()
318 if (!dmu_objset_projectquota_enabled(zfsvfs->z_os)) in zfs_set_userquota()
[all …]
H A Dzfs_vnops.c102 if (zfsvfs->z_os->os_sync != ZFS_SYNC_DISABLED) { in zfs_fsync()
143 error = dmu_offset_next(ZTOZSB(zp)->z_os, zp->z_id, hole, &noff); in zfs_holey_common()
240 objset_t *os = zfsvfs->z_os; in zfs_setup_direct()
358 (frsync || zfsvfs->z_os->os_sync == ZFS_SYNC_ALWAYS)) in zfs_read()
721 (zfsvfs->z_os->os_sync == ZFS_SYNC_ALWAYS); in zfs_write()
829 dmu_tx_t *tx = dmu_tx_create(zfsvfs->z_os); in zfs_write()
945 update_pages(zp, woff, tx_bytes, zfsvfs->z_os); in zfs_write()
1079 if (zfsvfs->z_os->os_sync == ZFS_SYNC_ALWAYS) in zfs_setsecattr()
1100 objset_t *os = zfsvfs->z_os; in zfs_get_data()
1368 inos = inzfsvfs->z_os; in zfs_clone_range()
[all …]
H A Dzfs_sa.c91 if ((error = dmu_buf_hold(ZTOZSB(zp)->z_os, zp->z_id, in zfs_sa_readlink()
117 VERIFY0(dmu_buf_hold(ZTOZSB(zp)->z_os, zp->z_id, 0, FTAG, &dbp, in zfs_sa_symlink()
259 if (spa_feature_is_enabled(zfsvfs->z_os->os_spa, in zfs_sa_set_xattr()
263 tx = dmu_tx_create(zfsvfs->z_os); in zfs_sa_set_xattr()
287 if (logsaxattr && zfsvfs->z_os->os_sync == ZFS_SYNC_ALWAYS) in zfs_sa_set_xattr()
433 VERIFY(0 == dmu_object_free(zfsvfs->z_os, in zfs_sa_upgrade()
H A Dzfs_fuid.c203 (void) zap_lookup(zfsvfs->z_os, MASTER_NODE_OBJ, in zfs_fuid_init()
206 zfsvfs->z_fuid_size = zfs_fuid_table_load(zfsvfs->z_os, in zfs_fuid_init()
240 zfsvfs->z_fuid_obj = dmu_object_alloc(zfsvfs->z_os, in zfs_fuid_sync()
243 VERIFY(zap_add(zfsvfs->z_os, MASTER_NODE_OBJ, in zfs_fuid_sync()
272 dmu_write(zfsvfs->z_os, zfsvfs->z_fuid_obj, 0, in zfs_fuid_sync()
275 VERIFY(0 == dmu_bonus_hold(zfsvfs->z_os, zfsvfs->z_fuid_obj, in zfs_fuid_sync()
H A Dzfs_replay.c357 error = dnode_try_claim(zfsvfs->z_os, objid, dnodesize >> DNODE_SHIFT); in zfs_replay_create_acl()
506 error = dnode_try_claim(zfsvfs->z_os, objid, dnodesize >> DNODE_SHIFT); in zfs_replay_create()
798 error = dnode_try_claim(zfsvfs->z_os, objid, dnodesize >> DNODE_SHIFT); in zfs_replay_rename_whiteout()
898 dmu_tx_t *tx = dmu_tx_create(zfsvfs->z_os); in zfs_replay_write2()
1035 ASSERT(spa_feature_is_active(zfsvfs->z_os->os_spa, in zfs_replay_setsaxattr()
H A Dzfs_ioctl.c1431 dmu_objset_disown(zfsvfs->z_os, B_TRUE, zfsvfs); in zfsvfs_rele()
2619 if (!spa_feature_is_enabled(zfsvfs->z_os->os_spa, in zfs_prop_set_special()
4587 ds = dmu_objset_ds(zfsvfs->z_os); in zfs_ioc_rollback()
5313 ds = dmu_objset_ds(zfsvfs->z_os); in zfs_ioc_recv_impl()
6273 if (!dmu_objset_userused_enabled(zfsvfs->z_os)) { in zfs_ioc_userspace_upgrade()
6281 ds = dmu_objset_ds(zfsvfs->z_os); in zfs_ioc_userspace_upgrade()
6290 mutex_enter(&zfsvfs->z_os->os_upgrade_lock); in zfs_ioc_userspace_upgrade()
6291 if (zfsvfs->z_os->os_upgrade_id == 0) { in zfs_ioc_userspace_upgrade()
6293 zfsvfs->z_os->os_upgrade_status = 0; in zfs_ioc_userspace_upgrade()
6294 mutex_exit(&zfsvfs->z_os->os_upgrade_lock); in zfs_ioc_userspace_upgrade()
[all …]
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/
H A Dzfs_vfsops.c284 dp = dmu_objset_pool(zfsvfs->z_os); in zfs_sync()
383 ASSERT3U(newval, <=, spa_maxblocksize(dmu_objset_spa(zfsvfs->z_os))); in blksz_changed_cb()
472 os = zfsvfs->z_os; in zfs_register_callbacks()
643 zfsvfs->z_os = os; in zfsvfs_init()
683 zfsvfs->z_use_fuids = USE_FUIDS(zfsvfs->z_version, zfsvfs->z_os); in zfsvfs_init()
684 zfsvfs->z_use_sa = USE_SA(zfsvfs->z_version, zfsvfs->z_os); in zfsvfs_init()
871 error = dataset_kstats_create(&zfsvfs->z_kstat, zfsvfs->z_os); in zfsvfs_setup()
874 zfsvfs->z_log = zil_open(zfsvfs->z_os, zfs_get_data, in zfsvfs_setup()
885 if (zap_get_stats(zfsvfs->z_os, zfsvfs->z_unlinkedobj, in zfsvfs_setup()
889 dprintf_ds(zfsvfs->z_os->os_dsl_dataset, in zfsvfs_setup()
[all …]
H A Dzfs_dir.c83 error = zap_lookup_norm(zfsvfs->z_os, dzp->z_id, name, 8, 1, in zfs_match_find()
86 error = zap_lookup(zfsvfs->z_os, dzp->z_id, name, 8, 1, zoid); in zfs_match_find()
468 zap_add_int(zfsvfs->z_os, zfsvfs->z_unlinkedobj, zp->z_id, tx)); in zfs_unlinked_add()
492 for (zap_cursor_init(&zc, zfsvfs->z_os, zfsvfs->z_unlinkedobj); in zfs_unlinked_drain_task()
500 error = dmu_object_info(zfsvfs->z_os, in zfs_unlinked_drain_task()
555 dsl_pool_unlinked_drain_taskq(dmu_objset_pool(zfsvfs->z_os)), in zfs_unlinked_drain()
575 dmu_objset_pool(zfsvfs->z_os)), zfsvfs->z_drain_task); in zfs_unlinked_drain_stop_wait()
604 for (zap_cursor_init(&zc, zfsvfs->z_os, dzp->z_id); in zfs_purgedir()
617 tx = dmu_tx_create(zfsvfs->z_os); in zfs_purgedir()
654 objset_t *os = zfsvfs->z_os; in zfs_rmnode()
[all …]
H A Dzfs_znode_os.c337 VERIFY(0 == sa_handle_get_from_db(zfsvfs->z_os, db, zp, in zfs_znode_sa_init()
559 (dmu_objset_projectquota_enabled(zfsvfs->z_os) && in zfs_znode_alloc()
631 if (zfs_is_readonly(zfsvfs) || dmu_objset_is_snapshot(zfsvfs->z_os)) in zfs_mark_inode_dirty()
686 dnodesize = dmu_objset_dnodesize(zfsvfs->z_os); in zfs_mknode()
708 VERIFY0(zap_create_claim_norm_dnsize(zfsvfs->z_os, obj, in zfs_mknode()
712 obj = zap_create_norm_dnsize(zfsvfs->z_os, in zfs_mknode()
718 VERIFY0(dmu_object_claim_dnsize(zfsvfs->z_os, obj, in zfs_mknode()
722 obj = dmu_object_alloc_dnsize(zfsvfs->z_os, in zfs_mknode()
729 VERIFY0(sa_buf_hold(zfsvfs->z_os, obj, NULL, &db)); in zfs_mknode()
773 dmu_objset_projectquota_enabled(zfsvfs->z_os)) in zfs_mknode()
[all …]
H A Dzfs_ctldir.c564 pool = dmu_objset_pool(zfsvfs->z_os); in zfsctl_inode_lookup()
613 spa_t *spa = zfsvfs->z_os->os_spa; in zfsctl_destroy()
614 uint64_t objsetid = dmu_objset_id(zfsvfs->z_os); in zfsctl_destroy()
741 objset_t *os = zfsvfs->z_os; in zfsctl_snapshot_name()
763 objset_t *os = zfsvfs->z_os; in zfsctl_snapshot_path_objset()
775 error = dmu_snapshot_list_next(zfsvfs->z_os, in zfsctl_snapshot_path_objset()
851 error = dmu_snapshot_lookup(zfsvfs->z_os, name, &id); in zfsctl_snapdir_lookup()
892 error = dmu_snapshot_realname(zfsvfs->z_os, snm, real, in zfsctl_snapdir_rename()
901 dmu_objset_name(zfsvfs->z_os, fsname); in zfsctl_snapdir_rename()
969 error = dmu_snapshot_realname(zfsvfs->z_os, name, real, in zfsctl_snapdir_remove()
[all …]
H A Dzfs_vnops_os.c400 objset_t *os = ITOZSB(ip)->z_os; in zfs_zrele_async()
569 error = zap_value_search(zfsvfs->z_os, dzp->z_id, zp->z_id, in zfs_get_name()
636 os = zfsvfs->z_os; in zfs_create()
840 if (zfsvfs->z_os->os_sync == ZFS_SYNC_ALWAYS) in zfs_create()
880 os = zfsvfs->z_os; in zfs_tmpfile()
1059 tx = dmu_tx_create(zfsvfs->z_os); in zfs_remove()
1200 if (zfsvfs->z_os->os_sync == ZFS_SYNC_ALWAYS) in zfs_remove()
1326 tx = dmu_tx_create(zfsvfs->z_os); in zfs_mkdir()
1388 if (zfsvfs->z_os->os_sync == ZFS_SYNC_ALWAYS) in zfs_mkdir()
1477 tx = dmu_tx_create(zfsvfs->z_os); in zfs_rmdir()
[all …]
H A Dzpl_ctldir.c259 dsl_pool_config_enter(dmu_objset_pool(zfsvfs->z_os), FTAG); in zpl_snapdir_iterate()
260 error = -dmu_snapshot_list_next(zfsvfs->z_os, MAXNAMELEN, in zpl_snapdir_iterate()
262 dsl_pool_config_exit(dmu_objset_pool(zfsvfs->z_os), FTAG); in zpl_snapdir_iterate()
415 dsl_dataset_t *ds = dmu_objset_ds(zfsvfs->z_os); in zpl_snapdir_getattr_impl()
428 stat->ctime = stat->mtime = dmu_objset_snap_cmtime(zfsvfs->z_os); in zpl_snapdir_getattr_impl()
H A Dzpl_super.c183 dmu_objset_name(zfsvfs->z_os, fsname); in __zpl_show_devname()
276 return (zfsvfs != NULL && os == zfsvfs->z_os); in zpl_test_super()
314 if (os != zfsvfs->z_os) in zpl_mount_impl()
H A Dzpl_file_range.c60 dmu_objset_spa(ITOZSB(dst_i)->z_os), SPA_FEATURE_BLOCK_CLONING)) in zpl_clone_file_range_impl()
H A Dzpl_file.c559 if (zfsvfs->z_os->os_sync == ZFS_SYNC_ALWAYS) in zpl_writepages()
603 if (ITOZSB(pp->mapping->host)->z_os->os_sync == ZFS_SYNC_ALWAYS) in zpl_writepage()
718 objset_t *os = zfsvfs->z_os; in zpl_fadvise()
H A Dzfs_acl.c1119 error = dmu_read(ZTOZSB(zp)->z_os, in zfs_acl_node_read()
1427 error = dmu_object_free(zfsvfs->z_os, aoid, tx); in zfs_aclset_common()
1433 aoid = dmu_object_alloc(zfsvfs->z_os, in zfs_aclset_common()
1440 (void) dmu_object_set_blocksize(zfsvfs->z_os, in zfs_aclset_common()
1448 dmu_write(zfsvfs->z_os, aoid, off, in zfs_aclset_common()
1458 error = dmu_object_free(zfsvfs->z_os, in zfs_aclset_common()
2162 tx = dmu_tx_create(zfsvfs->z_os); in zfs_setacl()
H A Dzpl_inode.c49 dsl_dataset_t *ds = dmu_objset_ds(zfsvfs->z_os); in zpl_lookup()
/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dzfs_vfsops.c253 if ((error = zap_lookup(zfsvfs->z_os, quotaobj, in zfs_getquota()
264 error = zap_lookup(zfsvfs->z_os, usedobj, buf, sizeof (used), 1, &used); in zfs_getquota()
440 dp = dmu_objset_pool(zfsvfs->z_os); in zfs_sync()
506 ASSERT3U(newval, <=, spa_maxblocksize(dmu_objset_spa(zfsvfs->z_os))); in blksz_changed_cb()
647 os = zfsvfs->z_os; in zfs_register_callbacks()
804 zfsvfs->z_os = os; in zfsvfs_init()
845 zfsvfs->z_use_fuids = USE_FUIDS(zfsvfs->z_version, zfsvfs->z_os); in zfsvfs_init()
846 zfsvfs->z_use_sa = USE_SA(zfsvfs->z_version, zfsvfs->z_os); in zfsvfs_init()
1042 dmu_objset_incompatible_encryption_version(zfsvfs->z_os)) in zfsvfs_setup()
1058 error = dataset_kstats_create(&zfsvfs->z_kstat, zfsvfs->z_os); in zfsvfs_setup()
[all …]
H A Dzfs_dir.c80 error = zap_lookup_norm(zfsvfs->z_os, dzp->z_id, name, 8, 1, in zfs_match_find()
83 error = zap_lookup(zfsvfs->z_os, dzp->z_id, name, 8, 1, zoid); in zfs_match_find()
277 VERIFY0(zap_add_int(zfsvfs->z_os, zfsvfs->z_unlinkedobj, zp->z_id, tx)); in zfs_unlinked_add()
300 for (zap_cursor_init(&zc, zfsvfs->z_os, zfsvfs->z_unlinkedobj); in zfs_unlinked_drain()
308 error = dmu_object_info(zfsvfs->z_os, in zfs_unlinked_drain()
337 tx = dmu_tx_create(zfsvfs->z_os); in zfs_unlinked_drain()
381 for (zap_cursor_init(&zc, zfsvfs->z_os, dzp->z_id); in zfs_purgedir()
395 tx = dmu_tx_create(zfsvfs->z_os); in zfs_purgedir()
431 objset_t *os = zfsvfs->z_os; in zfs_rmnode()
615 error = zap_add(zp->z_zfsvfs->z_os, dzp->z_id, name, in zfs_link_create()
[all …]
H A Dzfs_znode_os.c297 error = zap_add(zfsvfs->z_os, MASTER_NODE_OBJ, in zfs_create_share_dir()
358 VERIFY0(sa_handle_get_from_db(zfsvfs->z_os, db, zp, in zfs_znode_sa_init()
484 (dmu_objset_projectquota_enabled(zfsvfs->z_os) && in zfs_znode_alloc()
589 dnodesize = dmu_objset_dnodesize(zfsvfs->z_os); in zfs_mknode()
610 VERIFY0(zap_create_claim_norm_dnsize(zfsvfs->z_os, obj, in zfs_mknode()
614 obj = zap_create_norm_dnsize(zfsvfs->z_os, in zfs_mknode()
620 VERIFY0(dmu_object_claim_dnsize(zfsvfs->z_os, obj, in zfs_mknode()
624 obj = dmu_object_alloc_dnsize(zfsvfs->z_os, in zfs_mknode()
631 VERIFY0(sa_buf_hold(zfsvfs->z_os, obj, NULL, &db)); in zfs_mknode()
694 VERIFY0(sa_handle_get_from_db(zfsvfs->z_os, db, NULL, SA_HDL_SHARED, in zfs_mknode()
[all …]
H A Dzfs_ctldir.c842 objset_t *os = ((zfsvfs_t *)((vp)->v_vfsp->vfs_data))->z_os; in zfsctl_snapshot_zname()
855 objset_t *os = ((zfsvfs_t *)((vp)->v_vfsp->vfs_data))->z_os; in zfsctl_snapshot_lookup()
1080 dsl_pool_config_enter(dmu_objset_pool(zfsvfs->z_os), FTAG); in zfsctl_snapdir_readdir()
1081 error = dmu_snapshot_list_next(zfsvfs->z_os, sizeof (snapname), in zfsctl_snapdir_readdir()
1083 dsl_pool_config_exit(dmu_objset_pool(zfsvfs->z_os), FTAG); in zfsctl_snapdir_readdir()
1123 ds = dmu_objset_ds(zfsvfs->z_os); in zfsctl_snapdir_getattr()
1125 vap->va_ctime = dmu_objset_snap_cmtime(zfsvfs->z_os); in zfsctl_snapdir_getattr()
1307 dsl_pool_config_enter(dmu_objset_pool(zfsvfs->z_os), FTAG); in zfsctl_umount_snapshots()
1308 error = dmu_snapshot_list_next(zfsvfs->z_os, sizeof (snapname), in zfsctl_umount_snapshots()
1310 dsl_pool_config_exit(dmu_objset_pool(zfsvfs->z_os), FTAG); in zfsctl_umount_snapshots()
[all …]
H A Dzfs_vnops_os.c419 objset_t *os = zp->z_zfsvfs->z_os; in mappedread_sf()
548 objset_t *os = ITOZSB(vp)->z_os; in zfs_zrele_async()
964 os = zfsvfs->z_os; in zfs_create()
1083 if (zfsvfs->z_os->os_sync == ZFS_SYNC_ALWAYS) in zfs_create()
1163 tx = dmu_tx_create(zfsvfs->z_os); in zfs_remove_()
1213 if (zfsvfs->z_os->os_sync == ZFS_SYNC_ALWAYS) in zfs_remove_()
1391 tx = dmu_tx_create(zfsvfs->z_os); in zfs_mkdir()
1446 if (zfsvfs->z_os->os_sync == ZFS_SYNC_ALWAYS) in zfs_mkdir()
1500 tx = dmu_tx_create(zfsvfs->z_os); in zfs_rmdir_()
1527 if (zfsvfs->z_os->os_sync == ZFS_SYNC_ALWAYS) in zfs_rmdir_()
[all …]
H A Dzfs_acl.c1091 error = dmu_read(zp->z_zfsvfs->z_os, in zfs_acl_node_read()
1242 error = dmu_object_free(zfsvfs->z_os, aoid, tx); in zfs_aclset_common()
1248 aoid = dmu_object_alloc(zfsvfs->z_os, in zfs_aclset_common()
1255 (void) dmu_object_set_blocksize(zfsvfs->z_os, in zfs_aclset_common()
1263 dmu_write(zfsvfs->z_os, aoid, off, in zfs_aclset_common()
1273 error = dmu_object_free(zfsvfs->z_os, in zfs_aclset_common()
1972 tx = dmu_tx_create(zfsvfs->z_os); in zfs_setacl()
/freebsd/sys/contrib/openzfs/include/os/freebsd/zfs/sys/
H A Dzfs_vfsops_os.h52 objset_t *z_os; /* objset reference */ member
/freebsd/sys/contrib/openzfs/include/os/linux/zfs/sys/
H A Dzfs_vfsops_os.h84 objset_t *z_os; /* objset reference */ member

12