Home
last modified time | relevance | path

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

12345678910>>...14

/freebsd/sys/contrib/openzfs/module/zfs/
H A Dzap_micro.c35 #include <sys/zap.h>
88 zap_getflags(zap_t *zap) in zap_getflags() argument
90 if (zap->zap_ismicro) in zap_getflags()
92 return (zap_f_phys(zap)->zap_flags); in zap_getflags()
96 zap_hashbits(zap_t *zap) in zap_hashbits() argument
98 if (zap_getflags(zap) & ZAP_FLAG_HASH64) in zap_hashbits()
105 zap_maxcd(zap_t *zap) in zap_maxcd() argument
107 if (zap_getflags(zap) & ZAP_FLAG_HASH64) in zap_maxcd()
116 zap_t *zap = zn->zn_zap; in zap_hash() local
119 if (zap_getflags(zap) & ZAP_FLAG_PRE_HASHED_KEY) { in zap_hash()
[all …]
H A Dzap.c51 #include <sys/zap.h>
56 * If zap_iterate_prefetch is set, we will prefetch the entire ZAP object
72 * Given that the ZAP entries aren't returned in a specific order, the only
86 * Enable ZAP shrinking. When enabled, empty sibling leaf blocks will be
93 static uint64_t zap_allocate_blocks(zap_t *zap, int nblocks);
110 fzap_upgrade(zap_t *zap, dmu_tx_t *tx, zap_flags_t flags) in fzap_upgrade() argument
112 ASSERT(RW_WRITE_HELD(&zap->zap_rwlock)); in fzap_upgrade()
113 zap->zap_ismicro = FALSE; in fzap_upgrade()
115 zap->zap_dbu.dbu_evict_func_sync = zap_evict_sync; in fzap_upgrade()
116 zap->zap_dbu.dbu_evict_func_async = NULL; in fzap_upgrade()
[all …]
H A Dddt_zap.c34 #include <sys/zap.h>
206 * We don't want to prefetch the entire ZAP object, because in ddt_zap_walk()
209 * scrub I/Os for each ZAP block that we read in, so in ddt_zap_walk()
210 * reading the ZAP is unlikely to be the bottleneck. in ddt_zap_walk()
249 "zap",
263 "DDT ZAP leaf blockshift");
265 "DDT ZAP indirect blockshift");
/freebsd/usr.sbin/makefs/zfs/
H A Dzap.c64 unsigned long chunks; /* count of chunks needed for fat ZAP */
65 bool micro; /* can this be a micro ZAP? */
117 zfs_zap_t *zap; in zap_alloc() local
119 zap = ecalloc(1, sizeof(*zap)); in zap_alloc()
120 STAILQ_INIT(&zap->kvps); in zap_alloc()
121 zap->hashsalt = ((uint64_t)random() << 32) | random(); in zap_alloc()
122 zap->micro = true; in zap_alloc()
123 zap->kvpcnt = 0; in zap_alloc()
124 zap->chunks = 0; in zap_alloc()
125 zap->dnode = dnode; in zap_alloc()
[all …]
/freebsd/sys/contrib/openzfs/include/sys/
H A Dzap_impl.h34 #include <sys/zap.h>
46 #define FZAP_BLOCK_SHIFT(zap) ((zap)->zap_f.zap_block_shift) argument
75 #define MZE_PHYS(zap, mze) \ argument
76 (&zap_m_phys(zap)->mz_chunk[(mze)->mze_chunkid])
79 * The (fat) zap is stored in one object. It is an array of
102 #define ZAP_EMBEDDED_PTRTBL_SHIFT(zap) (FZAP_BLOCK_SHIFT(zap) - 3 - 1) argument
107 * word number (1<<ZAP_EMBEDDED_PTRTBL_SHIFT(zap)).
109 #define ZAP_EMBEDDED_PTRTBL_ENT(zap, idx) \ argument
110 ((uint64_t *)zap_f_phys(zap)) \
111 [(idx) + (1<<ZAP_EMBEDDED_PTRTBL_SHIFT(zap))]
[all …]
H A Dzap.h33 * ZAP - ZFS Attribute Processor
35 * The ZAP is a module which sits on top of the DMU (Data Management
39 * A "zapobj" is a DMU object which the ZAP uses to stores attributes.
40 * Users should use only zap routines to access a zapobj - they should
53 * The ZAP routines are thread-safe. However, you must observe the
63 * The ZAP is intended to operate most efficiently on attributes with
65 * the microzap will be used. The ZAP should be efficient enough so
68 * The ZAP's locking scheme makes its routines thread-safe. Operations
73 * the ZAP uses per-block locking - more than 128 * (number of cpus)
92 * Specifies matching criteria for ZAP lookups.
[all …]
H A Dzap_leaf.h30 #include <sys/zap.h>
36 struct zap;
113 /* Public to ZAP */
130 * ZAP_LEAF_HASH_NUMENTRIES(zap) entries. The hash table is
131 * followed by an array of ZAP_LEAF_NUMCHUNKS(zap)
178 /* Set by zap_leaf and public to ZAP */
213 extern int zap_entry_read_name(struct zap *zap, const zap_entry_handle_t *zeh,
240 struct zap_name *zn, const char *name, struct zap *zap);
249 extern void zap_leaf_stats(struct zap *zap, zap_leaf_t *l,
H A Ddmu.h176 DMU_OT_OBJECT_DIRECTORY, /* ZAP */
192 DMU_OT_DSL_DIR_CHILD_MAP, /* ZAP */
193 DMU_OT_DSL_DS_SNAP_MAP, /* ZAP */
194 DMU_OT_DSL_PROPS, /* ZAP */
200 DMU_OT_DIRECTORY_CONTENTS, /* ZAP */
201 DMU_OT_MASTER_NODE, /* ZAP */
202 DMU_OT_UNLINKED_SET, /* ZAP */
205 DMU_OT_ZVOL_PROP, /* ZAP */
209 DMU_OT_ZAP_OTHER, /* ZAP */
211 DMU_OT_ERROR_LOG, /* ZAP */
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/vdev_zaps/
H A Dvdev_zaps_004_pos.ksh24 # 1. Create a pool with one disk. Verify that it has a top and leaf ZAP.
27 # 4. Verify that the newly-attached disk has a leaf ZAP.
58 # Ensure top-level ZAP was transferred successfully.
61 log_fail "Top-level ZAP wasn't transferred successfully on attach."
64 # Ensure leaf ZAP of original disk was transferred successfully.
67 log_fail "$DISK used to have leaf-level ZAP $orig_leaf, now has "\
70 # Ensure original disk no longer has top-level ZAP.
72 [[ -n "$dsk1_top" ]] && log_fail "$DISK has top-level ZAP, but is only leaf."
74 # Ensure attached disk got a leaf-level ZAP but not a top-level ZAP.
77 [[ -n "$dsk2_top" ]] && log_fail "Attached disk $disk2 has top ZAP."
[all …]
H A Dvdev_zaps_003_pos.ksh25 # 2. Verify that mirror has top ZAP but no leaf ZAP.
26 # 3. Verify that each disk has a leaf ZAP but no top ZAP.
46 [[ -n "$top_zap" ]] && log_fail "Leaf vdev $DISK has top-level ZAP."
H A Dvdev_zaps_005_pos.ksh60 [[ "$new_top" -ne "$orig_top" ]] && log_fail "Top ZAP ($new_top) after "\
61 "import does not match top ZAP before export ($orig_top)"
62 [[ "$new_leaf" -ne "$orig_leaf" ]] && log_fail "Leaf ZAP ($new_leaf) after "\
63 "import does not match leaf ZAP before export ($orig_leaf)"
H A Dvdev_zaps_007_pos.ksh58 [[ "$new_leaf0" -ne "$orig_leaf0" ]] && log_fail "Leaf ZAP in original pool "\
60 [[ "$new_top_s0" -ne "$orig_top" ]] && log_fail "Top ZAP in original pool "\
71 [[ "$new_leaf1" -ne "$orig_leaf1" ]] && log_fail "Leaf ZAP in new pool "\
73 [[ "$new_top_s1" -ne "$orig_top" ]] && log_fail "Top ZAP in new pool "\
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/dedup/
H A Ddedup_legacy_fdt_upgrade.ksh75 log_must eval "zdb -D $TESTPOOL | grep -q 'DDT-sha256-zap-unique:.*entries=4'"
77 # should be just one DDT ZAP in the MOS
78 log_must test $(zdb -dddd $TESTPOOL 1 | grep DDT-sha256-zap- | wc -l) -eq 1
94 log_must eval "zdb -D $TESTPOOL | grep -q 'DDT-sha256-zap-duplicate:.*entries=4'"
98 log_must test $(zdb -dddd $TESTPOOL 1 | grep DDT-sha256-zap- | wc -l) -eq 2
111 log_must test $(zdb -dddd $TESTPOOL 1 | grep DDT-sha256-zap- | wc -l) -eq 0
121 log_must eval "zdb -D $TESTPOOL | grep -q 'DDT-sha256-zap-unique:.*entries=4'"
127 # with one ZAP inside
128 log_must test $(zdb -dddd $TESTPOOL $obj | grep DDT-sha256-zap- | wc -l) -eq 1
H A Ddedup_legacy_fdt_mixed.ksh75 log_must eval "zdb -D $TESTPOOL | grep -q 'DDT-skein-zap-unique:.*entries=4'"
77 # should be just one DDT ZAP in the MOS
78 log_must test $(zdb -dddd $TESTPOOL 1 | grep DDT-.*-zap- | wc -l) -eq 1
94 log_must eval "zdb -D $TESTPOOL | grep -q 'DDT-blake3-zap-unique:.*entries=4'"
96 # two entries in the MOS: the legacy skein DDT ZAP, and the containing dir for
98 log_must test $(zdb -dddd $TESTPOOL 1 | grep DDT-.*-zap- | wc -l) -eq 1
101 # containing object has one ZAP inside
103 log_must test $(zdb -dddd $TESTPOOL $obj | grep DDT-.*-zap- | wc -l) -eq 1
H A Ddedup_legacy_import.ksh67 log_must eval "zdb -D $TESTPOOL | grep -q 'DDT-sha256-zap-unique:.*entries=4'"
69 # should be just one DDT ZAP in the MOS
70 log_must test $(zdb -dddd $TESTPOOL 1 | grep DDT-sha256-zap- | wc -l) -eq 1
90 log_must test $(zdb -dddd $TESTPOOL 1 | grep DDT-sha256-zap- | wc -l) -eq 0
100 log_must eval "zdb -D $TESTPOOL | grep -q 'DDT-sha256-zap-unique:.*entries=4'"
102 # should be just one DDT ZAP in the MOS
103 log_must test $(zdb -dddd $TESTPOOL 1 | grep DDT-sha256-zap- | wc -l) -eq 1
H A Ddedup_zap_shrink.ksh33 # check that the DDT zap was shrunk. Use zdb to check that the zap object
40 "Ensure DDT ZAP object shrank after removing entries."
44 # entries appear in the DDT ZAP
68 zap_obj=$(zdb -DDD $TESTPOOL | grep "DDT-sha256-zap-unique" | sed -n 's/.*object=//p')
86 log_pass "ZAP object shrank after removing entries."
H A Ddedup_legacy_create.ksh67 log_must eval "zdb -D $TESTPOOL | grep -q 'DDT-sha256-zap-unique:.*entries=4'"
69 # should be just one DDT ZAP in the MOS
70 log_must test $(zdb -dddd $TESTPOOL 1 | grep DDT-sha256-zap- | wc -l) -eq 1
77 log_must eval "zdb -D $TESTPOOL | grep -q 'DDT-sha256-zap-duplicate:.*entries=4'"
81 log_must test $(zdb -dddd $TESTPOOL 1 | grep DDT-sha256-zap- | wc -l) -eq 2
94 log_must test $(zdb -dddd $TESTPOOL 1 | grep DDT-sha256-zap- | wc -l) -eq 0
H A Ddedup_fdt_import.ksh74 log_must eval "zdb -D $TESTPOOL | grep -q 'DDT-sha256-zap-unique:.*entries=4'"
80 # with only one ZAP inside
81 log_must test $(zdb -dddd $TESTPOOL $obj | grep DDT-sha256-zap- | wc -l) -eq 1
111 log_must eval "zdb -D $TESTPOOL | grep -q 'DDT-sha256-zap-unique:.*entries=4'"
117 # with only one ZAP inside
118 log_must test $(zdb -dddd $TESTPOOL $obj | grep DDT-sha256-zap- | wc -l) -eq 1
H A Ddedup_fdt_create.ksh74 log_must eval "zdb -D $TESTPOOL | grep -q 'DDT-sha256-zap-unique:.*entries=4'"
80 # with only one ZAP inside
81 log_must test $(zdb -dddd $TESTPOOL $obj | grep DDT-sha256-zap- | wc -l) -eq 1
88 log_must eval "zdb -D $TESTPOOL | grep -q 'DDT-sha256-zap-duplicate:.*entries=4'"
92 log_must test $(zdb -dddd $TESTPOOL $obj | grep DDT-sha256-zap- | wc -l) -eq 2
/freebsd/stand/libsa/zfs/
H A Dzfsimpl.c2562 * Compare a name with a zap leaf entry. Return non-zero if the name
2594 * Extract a uint64_t value from a zap leaf entry.
2632 * Extract a array from a zap leaf entry.
2700 zap_get_leaf_byblk(fat_zap_t *zap, uint64_t blk, zap_leaf_t **lp) in zap_get_leaf_byblk() argument
2702 int bs = FZAP_BLOCK_SHIFT(zap); in zap_get_leaf_byblk()
2716 err = dnode_read(zap->zap_spa, zap->zap_dnode, blk << bs, (*lp)->l_phys, in zap_get_leaf_byblk()
2725 zap_table_load(fat_zap_t *zap, zap_table_phys_t *tbl, uint64_t idx, in zap_table_load() argument
2728 int bs = FZAP_BLOCK_SHIFT(zap); in zap_table_load()
2734 buf = malloc(1 << zap->zap_block_shift); in zap_table_load()
2737 rc = dnode_read(zap->zap_spa, zap->zap_dnode, (tbl->zt_blk + blk) << bs, in zap_table_load()
[all …]
/freebsd/usr.sbin/makefs/
H A Dzfs.c478 zfs_zap_t *zap; in pool_init_objdir() local
483 zap = zap_alloc(zfs->mos, objdir); in pool_init_objdir()
484 pool_init_objdir_config(zfs, zap); in pool_init_objdir()
485 pool_init_objdir_bplists(zfs, zap); in pool_init_objdir()
486 pool_init_objdir_feature_maps(zfs, zap); in pool_init_objdir()
487 pool_init_objdir_dsl(zfs, zap); in pool_init_objdir()
488 pool_init_objdir_poolprops(zfs, zap); in pool_init_objdir()
489 zap_write(zfs, zap); in pool_init_objdir()
499 * object directory (ZAP)
508 * |-> DSL child directory (ZAP)
[all...]
/freebsd/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/crypto/krb5/src/lib/crypto/openssl/enc_provider/
H A Daes.c97 zap(iblock, BLOCK_SIZE); in cbc_enc()
98 zap(oblock, BLOCK_SIZE); in cbc_enc()
131 zap(iblock, BLOCK_SIZE); in cbc_decr()
132 zap(oblock, BLOCK_SIZE); in cbc_decr()
264 zap(oblock, dlen); in cts_encr()
265 zap(dbuf, dlen); in cts_encr()
317 zap(oblock, dlen); in cts_decr()
318 zap(dbuf, dlen); in cts_decr()
/freebsd/sys/cddl/boot/zfs/
H A Dzfsimpl.h909 * format change is made to the SPA, DMU, or ZAP.
1152 DMU_OT_OBJECT_DIRECTORY, /* ZAP */
1168 DMU_OT_DSL_DIR_CHILD_MAP, /* ZAP */
1169 DMU_OT_DSL_DS_SNAP_MAP, /* ZAP */
1170 DMU_OT_DSL_PROPS, /* ZAP */
1176 DMU_OT_DIRECTORY_CONTENTS, /* ZAP */
1177 DMU_OT_MASTER_NODE, /* ZAP */
1178 DMU_OT_UNLINKED_SET, /* ZAP */
1181 DMU_OT_ZVOL_PROP, /* ZAP */
1185 DMU_OT_ZAP_OTHER, /* ZAP */
[all …]
/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dzfs_dir.c53 #include <sys/zap.h>
66 * zfs_match_find() is used by zfs_dirent_lookup() to perform zap lookups
137 * affect how we perform zap lookups. in zfs_dirent_lookup()
264 * chance that the nlink list is using a fat zap (ie. has more than
291 zap_attribute_t *zap; in zfs_unlinked_drain() local
300 zap = zap_attribute_alloc(); in zfs_unlinked_drain()
302 zap_cursor_retrieve(&zc, zap) == 0; in zfs_unlinked_drain()
310 zap->za_first_integer, &doi); in zfs_unlinked_drain()
320 error = zfs_zget(zfsvfs, zap->za_first_integer, &zp); in zfs_unlinked_drain()
356 zap_attribute_free(zap); in zfs_unlinked_drain()
[all …]

12345678910>>...14