Home
last modified time | relevance | path

Searched full:zap (Results 1 – 25 of 286) sorted by relevance

12345678910>>...12

/freebsd-src/sys/contrib/openzfs/module/zfs/
H A Dzap_micro.c34 #include <sys/zap.h>
87 zap_getflags(zap_t *zap) in zap_hash()
89 if (zap->zap_ismicro) in zap_hash()
91 return (zap_f_phys(zap)->zap_flags); in zap_hash()
95 zap_hashbits(zap_t *zap) in zap_hash()
97 if (zap_getflags(zap) & ZAP_FLAG_HASH64) in zap_hash()
104 zap_maxcd(zap_t *zap) in zap_hash()
106 if (zap_getflags(zap) & ZAP_FLAG_HASH64) in zap_hash()
115 zap_t *zap = zn->zn_zap; in zap_hash()
118 if (zap_getflags(zap) in zap_hash()
50 zap_getflags(zap_t * zap) zap_getflags() argument
58 zap_hashbits(zap_t * zap) zap_hashbits() argument
67 zap_maxcd(zap_t * zap) zap_maxcd() argument
78 zap_t *zap = zn->zn_zap; zap_hash() local
134 zap_normalize(zap_t * zap,const char * name,char * namenorm,int normflags) zap_normalize() argument
168 zap_name_alloc(zap_t * zap) zap_name_alloc() argument
184 zap_t *zap = zn->zn_zap; zap_name_init_str() local
234 zap_name_alloc_str(zap_t * zap,const char * key,matchtype_t mt) zap_name_alloc_str() argument
245 zap_name_alloc_uint64(zap_t * zap,const uint64_t * key,int numints) zap_name_alloc_uint64() argument
347 mze_find_unused_cd(zap_t * zap,uint64_t hash) mze_find_unused_cd() argument
387 zap_t *zap = zn->zn_zap; mze_canfit_fzap_leaf() local
411 mze_destroy(zap_t * zap) mze_destroy() argument
427 zap_t *zap = kmem_zalloc(sizeof (zap_t), KM_SLEEP); mzap_open() local
535 zap_t *zap = dmu_buf_get_user(db); zap_lockdir_impl() local
641 zap_unlockdir(zap_t * zap,const void * tag) zap_unlockdir() argument
652 zap_t *zap = *zapp; mzap_upgrade() local
728 zap_t *zap; mzap_create_impl() local
898 zap_t *zap = dbu; zap_evict_sync() local
913 zap_t *zap; zap_count() local
933 mzap_normalization_conflict(zap_t * zap,zap_name_t * zn,mzap_ent_t * mze,zfs_btree_index_t * idx) mzap_normalization_conflict() argument
993 zap_lookup_impl(zap_t * zap,const char * name,uint64_t integer_size,uint64_t num_integers,void * buf,matchtype_t mt,char * realname,int rn_len,boolean_t * ncp) zap_lookup_impl() argument
1041 zap_t *zap; zap_lookup_norm() local
1056 zap_t *zap; zap_prefetch() local
1089 zap_t *zap; zap_lookup_norm_by_dnode() local
1105 zap_t *zap; zap_prefetch_uint64() local
1127 zap_t *zap; zap_lookup_uint64() local
1160 zap_t *zap; zap_length() local
1194 zap_t *zap; zap_length_uint64() local
1214 zap_t *zap = zn->zn_zap; mzap_addent() local
1255 zap_add_impl(zap_t * zap,const char * key,int integer_size,uint64_t num_integers,const void * val,dmu_tx_t * tx,const void * tag) zap_add_impl() argument
1299 zap_t *zap; zap_add() local
1315 zap_t *zap; zap_add_by_dnode() local
1327 zap_add_uint64_impl(zap_t * zap,const uint64_t * key,int key_numints,int integer_size,uint64_t num_integers,const void * val,dmu_tx_t * tx,const void * tag) zap_add_uint64_impl() argument
1351 zap_t *zap; zap_add_uint64() local
1368 zap_t *zap; zap_add_uint64_by_dnode() local
1384 zap_t *zap; zap_update() local
1428 zap_update_uint64_impl(zap_t * zap,const uint64_t * key,int key_numints,int integer_size,uint64_t num_integers,const void * val,dmu_tx_t * tx,const void * tag) zap_update_uint64_impl() argument
1452 zap_t *zap; zap_update_uint64() local
1468 zap_t *zap; zap_update_uint64_by_dnode() local
1487 zap_remove_impl(zap_t * zap,const char * name,matchtype_t mt,dmu_tx_t * tx) zap_remove_impl() argument
1516 zap_t *zap; zap_remove_norm() local
1530 zap_t *zap; zap_remove_by_dnode() local
1542 zap_remove_uint64_impl(zap_t * zap,const uint64_t * key,int key_numints,dmu_tx_t * tx,const void * tag) zap_remove_uint64_impl() argument
1562 zap_t *zap; zap_remove_uint64() local
1577 zap_t *zap; zap_remove_uint64_by_dnode() local
1748 zap_t *zap; zap_get_stats() local
[all...]
H A Dzap.c50 #include <sys/zap.h>
55 * If zap_iterate_prefetch is set, we will prefetch the entire ZAP object
71 * Given that the ZAP entries aren't returned in a specific order, the only
85 * Enable ZAP shrinking. When enabled, empty sibling leaf blocks will be
92 static uint64_t zap_allocate_blocks(zap_t *zap, int nblocks);
109 fzap_upgrade(zap_t *zap, dmu_tx_t *tx, zap_flags_t flags) in fzap_upgrade() argument
111 ASSERT(RW_WRITE_HELD(&zap->zap_rwlock)); in fzap_upgrade()
112 zap->zap_ismicro = FALSE; in fzap_upgrade()
114 zap->zap_dbu.dbu_evict_func_sync = zap_evict_sync; in fzap_upgrade()
115 zap in fzap_upgrade()
160 zap_tryupgradedir(zap_t * zap,dmu_tx_t * tx) zap_tryupgradedir() argument
176 zap_table_grow(zap_t * zap,zap_table_phys_t * tbl,void (* transfer_func)(const uint64_t * src,uint64_t * dst,int n),dmu_tx_t * tx) zap_table_grow() argument
253 zap_table_store(zap_t * zap,zap_table_phys_t * tbl,uint64_t idx,uint64_t val,dmu_tx_t * tx) zap_table_store() argument
300 zap_table_load(zap_t * zap,zap_table_phys_t * tbl,uint64_t idx,uint64_t * valp) zap_table_load() argument
349 zap_grow_ptrtbl(zap_t * zap,dmu_tx_t * tx) zap_grow_ptrtbl() argument
398 zap_increment_num_entries(zap_t * zap,int delta,dmu_tx_t * tx) zap_increment_num_entries() argument
408 zap_allocate_blocks(zap_t * zap,int nblocks) zap_allocate_blocks() argument
426 zap_create_leaf(zap_t * zap,dmu_tx_t * tx) zap_create_leaf() argument
468 fzap_count(zap_t * zap,uint64_t * count) fzap_count() argument
535 zap_get_leaf_byblk(zap_t * zap,uint64_t blkid,dmu_tx_t * tx,krw_t lt,zap_leaf_t ** lp) zap_get_leaf_byblk() argument
585 zap_idx_to_blk(zap_t * zap,uint64_t idx,uint64_t * valp) zap_idx_to_blk() argument
601 zap_set_idx_to_blk(zap_t * zap,uint64_t idx,uint64_t blk,dmu_tx_t * tx) zap_set_idx_to_blk() argument
616 zap_set_idx_range_to_blk(zap_t * zap,uint64_t idx,uint64_t nptrs,uint64_t blk,dmu_tx_t * tx) zap_set_idx_range_to_blk() argument
657 check_sibling_ptrtbl_range(zap_t * zap,uint64_t prefix,uint64_t prefix_len) check_sibling_ptrtbl_range() argument
682 zap_deref_leaf(zap_t * zap,uint64_t h,dmu_tx_t * tx,krw_t lt,zap_leaf_t ** lp) zap_deref_leaf() argument
712 zap_t *zap = zn->zn_zap; zap_expand_leaf() local
802 zap_t *zap = zn->zn_zap; zap_put_leaf_maybe_grow_ptrtbl() local
914 zap_t *zap = zn->zn_zap; fzap_add_cd() local
976 zap_t *zap = zn->zn_zap; fzap_update() local
1067 zap_t *zap = zn->zn_zap; fzap_prefetch() local
1298 fzap_cursor_retrieve(zap_t * zap,zap_cursor_t * zc,zap_attribute_t * za) fzap_cursor_retrieve() argument
1393 zap_stats_ptrtbl(zap_t * zap,uint64_t * tbl,int len,zap_stats_t * zs) zap_stats_ptrtbl() argument
1418 fzap_get_stats(zap_t * zap,zap_stats_t * zs) fzap_get_stats() argument
1475 zap_trunc(zap_t * zap) zap_trunc() argument
1534 zap_t *zap = zn->zn_zap; zap_shrink() local
[all...]
H A Dddt_zap.c33 #include <sys/zap.h>
205 * We don't want to prefetch the entire ZAP object, because in ddt_zap_walk()
208 * scrub I/Os for each ZAP block that we read in, so in ddt_zap_walk()
209 * reading the ZAP is unlikely to be the bottleneck. in ddt_zap_walk()
248 "zap",
262 "DDT ZAP leaf blockshift");
264 "DDT ZAP indirect blockshift");
H A Dzap_leaf.c39 #include <sys/zap.h>
443 * normalized zap objects, so this will find the in zap_leaf_lookup_closest()
529 zap_entry_read_name(zap_t *zap, const zap_entry_handle_t *zeh, uint16_t buflen, in zap_entry_remove()
536 if (zap_getflags(zap) & ZAP_FLAG_UINT64_KEY) { in zap_entry_remove()
689 const char *name, zap_t *zap) in zap_leaf_rehash_entry()
694 if (zap->zap_normflags == 0) in zap_leaf_rehash_entry()
706 zn = zap_name_alloc_str(zap, name, MT_NORMALIZE); in zap_leaf_transfer_array()
817 zap_leaf_stats(zap_t *zap, zap_leaf_t *l, zap_stats_t *zs) in zap_leaf_stats()
819 uint_t n = zap_f_phys(zap)->zap_ptrtbl.zt_shift - in zap_leaf_stats()
829 n = ((1<<FZAP_BLOCK_SHIFT(zap)) in zap_leaf_stats()
486 zap_entry_read_name(zap_t * zap,const zap_entry_handle_t * zeh,uint16_t buflen,char * buf) zap_entry_read_name() argument
645 zap_entry_normalization_conflict(zap_entry_handle_t * zeh,zap_name_t * zn,const char * name,zap_t * zap) zap_entry_normalization_conflict() argument
799 zap_leaf_stats(zap_t * zap,zap_leaf_t * l,zap_stats_t * zs) zap_leaf_stats() argument
[all...]
H A Dzfeature.c30 #include <sys/zap.h>
94 * Information about features is stored in 3 ZAP objects in the pool's MOS.
114 * Some features may be required to read the ZAP objects containing feature
119 * features_for_write ZAP object can be read before the pool is written to).
131 * features_for_read or features_for_write ZAP object and if it needs to be
441 * We create feature flags ZAP objects in two instances: during pool in spa_feature_create_zap_objects()
/freebsd-src/usr.sbin/makefs/zfs/
H A Dzap.c63 unsigned long chunks; /* count of chunks needed for fat ZAP */
64 bool micro; /* can this be a micro ZAP? */
116 zfs_zap_t *zap; in zap_alloc() local
118 zap = ecalloc(1, sizeof(*zap)); in zap_alloc()
119 STAILQ_INIT(&zap->kvps); in zap_alloc()
120 zap->hashsalt = ((uint64_t)random() << 32) | random(); in zap_alloc()
121 zap->micro = true; in zap_alloc()
122 zap->kvpcnt = 0; in zap_alloc()
123 zap->chunks = 0; in zap_alloc()
124 zap->dnode = dnode; in zap_alloc()
[all …]
H A DMakefile.inc8 zap.c
13 CWARNFLAGS.zap.c+= -Wno-sign-compare
/freebsd-src/sys/contrib/openzfs/include/sys/
H A Dzap_impl.h33 #include <sys/zap.h>
45 #define FZAP_BLOCK_SHIFT(zap) ((zap)->zap_f.zap_block_shift)
74 #define MZE_PHYS(zap, mze) \ argument
75 (&zap_m_phys(zap)->mz_chunk[(mze)->mze_chunkid])
78 * The (fat) zap is stored in one object. It is an array of
101 #define ZAP_EMBEDDED_PTRTBL_SHIFT(zap) (FZAP_BLOCK_SHIFT(zap) - 3 - 1) argument
106 * word number (1<<ZAP_EMBEDDED_PTRTBL_SHIFT(zap)).
108 #define ZAP_EMBEDDED_PTRTBL_ENT(zap, id argument
44 FZAP_BLOCK_SHIFT(zap) global() argument
144 typedef struct zap { global() struct
145 zap_dbuzap global() argument
146 zap_objsetzap global() argument
147 zap_objectzap global() argument
148 zap_dnodezap global() argument
149 zap_dbufzap global() argument
150 zap_rwlockzap global() argument
151 zap_ismicrozap global() argument
152 zap_normflagszap global() argument
153 zap_saltzap global() argument
169 zap_uzap global() argument
173 zap_f_phys(zap_t * zap) zap_f_phys() argument
179 zap_m_phys(zap_t * zap) zap_m_phys() argument
[all...]
H A Dzap.h32 * ZAP - ZFS Attribute Processor
34 * The ZAP is a module which sits on top of the DMU (Data Management
38 * A "zapobj" is a DMU object which the ZAP uses to stores attributes.
39 * Users should use only zap routines to access a zapobj - they should
52 * The ZAP routines are thread-safe. However, you must observe the
62 * The ZAP is intended to operate most efficiently on attributes with
64 * the microzap will be used. The ZAP should be efficient enough so
67 * The ZAP's locking scheme makes its routines thread-safe. Operations
72 * the ZAP uses per-block locking - more than 128 * (number of cpus)
91 * Specifies matching criteria for ZAP lookup
[all...]
H A Dzap_leaf.h29 #include <sys/zap.h>
35 struct zap;
112 /* Public to ZAP */
129 * ZAP_LEAF_HASH_NUMENTRIES(zap) entries. The hash table is
130 * followed by an array of ZAP_LEAF_NUMCHUNKS(zap)
177 /* Set by zap_leaf and public to ZAP */
212 extern int zap_entry_read_name(struct zap *zap, const zap_entry_handle_t *zeh,
239 struct zap_name *zn, const char *name, struct zap *zap);
248 extern void zap_leaf_stats(struct zap *zap, zap_leaf_t *l,
H A Ddmu.h175 DMU_OT_OBJECT_DIRECTORY, /* ZAP */
191 DMU_OT_DSL_DIR_CHILD_MAP, /* ZAP */
192 DMU_OT_DSL_DS_SNAP_MAP, /* ZAP */
193 DMU_OT_DSL_PROPS, /* ZAP */
199 DMU_OT_DIRECTORY_CONTENTS, /* ZAP */
200 DMU_OT_MASTER_NODE, /* ZAP */
201 DMU_OT_UNLINKED_SET, /* ZAP */
204 DMU_OT_ZVOL_PROP, /* ZAP */
208 DMU_OT_ZAP_OTHER, /* ZAP */
210 DMU_OT_ERROR_LOG, /* ZAP */
[all...]
/freebsd-src/sys/contrib/openzfs/tests/zfs-tests/tests/functional/vdev_zaps/
H A Dvdev_zaps_004_pos.ksh23 # 1. Create a pool with one disk. Verify that it has a top and leaf ZAP.
26 # 4. Verify that the newly-attached disk has a leaf ZAP.
57 # Ensure top-level ZAP was transferred successfully.
60 log_fail "Top-level ZAP wasn't transferred successfully on attach."
63 # Ensure leaf ZAP of original disk was transferred successfully.
66 log_fail "$DISK used to have leaf-level ZAP $orig_leaf, now has "\
69 # Ensure original disk no longer has top-level ZAP.
71 [[ -n "$dsk1_top" ]] && log_fail "$DISK has top-level ZAP, but is only leaf."
73 # Ensure attached disk got a leaf-level ZAP but not a top-level ZAP.
76 [[ -n "$dsk2_top" ]] && log_fail "Attached disk $disk2 has top ZAP."
[all …]
H A Dvdev_zaps_003_pos.ksh24 # 2. Verify that mirror has top ZAP but no leaf ZAP.
25 # 3. Verify that each disk has a leaf ZAP but no top ZAP.
45 [[ -n "$top_zap" ]] && log_fail "Leaf vdev $DISK has top-level ZAP."
H A Dvdev_zaps_005_pos.ksh59 [[ "$new_top" -ne "$orig_top" ]] && log_fail "Top ZAP ($new_top) after "\
60 "import does not match top ZAP before export ($orig_top)"
61 [[ "$new_leaf" -ne "$orig_leaf" ]] && log_fail "Leaf ZAP ($new_leaf) after "\
62 "import does not match leaf ZAP before export ($orig_leaf)"
H A Dvdev_zaps_007_pos.ksh57 [[ "$new_leaf0" -ne "$orig_leaf0" ]] && log_fail "Leaf ZAP in original pool "\
59 [[ "$new_top_s0" -ne "$orig_top" ]] && log_fail "Top ZAP in original pool "\
70 [[ "$new_leaf1" -ne "$orig_leaf1" ]] && log_fail "Leaf ZAP in new pool "\
72 [[ "$new_top_s1" -ne "$orig_top" ]] && log_fail "Top ZAP in new pool "\
H A Dvdev_zaps.kshlib55 log_fail "$vd on $pool has no $lvl ZAP in config"
56 elif ! zdb -d $pool $zapobj | grep -q 'zap'; then
57 log_fail "$vd on $pool has no $lvl ZAP in MOS"
/freebsd-src/stand/libsa/zfs/
H A Dzfsimpl.c2428 * Compare a name with a zap leaf entry. Return non-zero if the name
2460 * Extract a uint64_t value from a zap leaf entry.
2498 * Extract a array from a zap leaf entry.
2566 zap_get_leaf_byblk(fat_zap_t *zap, uint64_t blk, zap_leaf_t **lp) in zap_get_leaf_byblk() argument
2568 int bs = FZAP_BLOCK_SHIFT(zap); in zap_get_leaf_byblk()
2582 err = dnode_read(zap->zap_spa, zap->zap_dnode, blk << bs, (*lp)->l_phys, in zap_get_leaf_byblk()
2591 zap_table_load(fat_zap_t *zap, zap_table_phys_t *tbl, uint64_t idx, in zap_table_load() argument
2594 int bs = FZAP_BLOCK_SHIFT(zap); in zap_table_load()
2600 buf = malloc(1 << zap->zap_block_shift); in zap_table_load()
2603 rc = dnode_read(zap->zap_spa, zap->zap_dnode, (tbl->zt_blk + blk) << bs, in zap_table_load()
[all …]
/freebsd-src/usr.sbin/makefs/
H A Dzfs.c475 zfs_zap_t *zap; in pool_init_objdir()
480 zap = zap_alloc(zfs->mos, objdir); in pool_init_objdir()
481 pool_init_objdir_config(zfs, zap); in pool_init_objdir()
482 pool_init_objdir_bplists(zfs, zap); in pool_init_objdir()
483 pool_init_objdir_feature_maps(zfs, zap); in pool_init_objdir()
484 pool_init_objdir_dsl(zfs, zap); in pool_init_objdir()
485 pool_init_objdir_poolprops(zfs, zap); in pool_init_objdir()
486 zap_write(zfs, zap);
496 * object directory (ZAP)
505 * |-> DSL child directory (ZAP)
473 zfs_zap_t *zap; pool_init_objdir() local
[all...]
/freebsd-src/sys/contrib/device-tree/Bindings/display/msm/
H A Dgpu.txt33 - zap-shader: For a5xx and a6xx devices this node contains a memory-region that
34 points to reserved memory to store the zap shader that can be used to help
36 - firmware-name: optional property of the 'zap-shader' node, listing the
37 relative path of the device specific zap firmware.
152 zap-shader {
/freebsd-src/sys/cddl/boot/zfs/
H A Dzfsimpl.h914 * format change is made to the SPA, DMU, or ZAP.
1157 DMU_OT_OBJECT_DIRECTORY, /* ZAP */
1173 DMU_OT_DSL_DIR_CHILD_MAP, /* ZAP */
1174 DMU_OT_DSL_DS_SNAP_MAP, /* ZAP */
1175 DMU_OT_DSL_PROPS, /* ZAP */
1181 DMU_OT_DIRECTORY_CONTENTS, /* ZAP */
1182 DMU_OT_MASTER_NODE, /* ZAP */
1183 DMU_OT_UNLINKED_SET, /* ZAP */
1186 DMU_OT_ZVOL_PROP, /* ZAP */
1190 DMU_OT_ZAP_OTHER, /* ZAP */
[all …]
/freebsd-src/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zdb/
H A Dzdb_object_range_pos.ksh147 # Get all objects in the meta-objset to test m (spacemap) and z (zap) flags
155 # Range 0:-1:z must output all zap objects
156 expected=$(grep "zap" <<< $all_mos_objects)
161 expected=$(grep -v -e "zap" -e "SPA space map" <<< $all_mos_objects)
166 expected=$(grep -e "SPA space map" -e "zap" <<< $all_mos_objects)
/freebsd-src/sys/contrib/openzfs/tests/zfs-tests/tests/functional/zap_shrink/
H A Dzap_shrink_001_pos.ksh32 # check that the directory zap was shrunk. Use zdb to check that the zap object
45 "Make sure that the directory ZAP object was shrunk."
/freebsd-src/sys/contrib/openzfs/module/os/linux/zfs/
H A Dzfs_dir.c48 #include <sys/zap.h>
59 * zfs_match_find() is used by zfs_dirent_lock() to perform zap lookups
109 * in dzp's directory zap object. As long as you hold a dirlock, you can
111 * can change the zap entry for (i.e. link or unlink) this name.
170 * perform zap lookups, and the "width" of our dirlocks. in zfs_dirent_lock()
308 * not the dzp's z_lock, that protects the name in the zap object.) in zfs_dirent_lock()
453 * chance that the nlink list is using a fat zap (ie. has more than
482 zap_attribute_t *zap = zap_attribute_alloc(); in zfs_unlinked_drain_task()
493 zap_cursor_retrieve(&zc, zap) == 0 && !zfsvfs->z_drain_cancel; in zfs_unlinked_drain_task()
501 zap in zfs_unlinked_drain_task()
479 zap_attribute_t zap; zfs_unlinked_drain_task() local
592 zap_attribute_t zap; zfs_purgedir() local
[all...]
/freebsd-src/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dzfs_dir.c52 #include <sys/zap.h>
65 * zfs_match_find() is used by zfs_dirent_lookup() to perform zap lookups
136 * affect how we perform zap lookups. in zfs_dirent_lookup()
263 * chance that the nlink list is using a fat zap (ie. has more than
290 zap_attribute_t *zap; in zfs_unlinked_drain() local
299 zap = zap_attribute_alloc(); in zfs_unlinked_drain()
301 zap_cursor_retrieve(&zc, zap) == 0; in zfs_unlinked_drain()
309 zap->za_first_integer, &doi); in zfs_unlinked_drain()
319 error = zfs_zget(zfsvfs, zap->za_first_integer, &zp); in zfs_unlinked_drain()
355 zap_attribute_free(zap);
371 zap_attribute_t zap; zfs_purgedir() local
[all...]
/freebsd-src/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DSCCP.cpp60 << "Can't zap returns of the function : " << F.getName() in findReturnsToZap()
94 "We can only zap functions where all live users have a concrete value"); in findReturnsToZap()
98 LLVM_DEBUG(dbgs() << "Can't zap return of the block due to present " in findReturnsToZap()
274 // actually zap their returns. This is important because we can only do this in runIPSCCP()
315 // Zap all returns which we've identified as zap to change. in runIPSCCP()

12345678910>>...12