Searched refs:zb (Results 1 - 25 of 33) sorted by relevance

12

/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dspa_errlog.c62 bookmark_to_name(zbookmark_phys_t *zb, char *buf, size_t len) argument
65 (u_longlong_t)zb->zb_objset, (u_longlong_t)zb->zb_object,
66 (u_longlong_t)zb->zb_level, (u_longlong_t)zb->zb_blkid);
74 name_to_bookmark(char *buf, zbookmark_phys_t *zb) argument
76 zb->zb_objset = zfs_strtonum(buf, &buf);
78 zb->zb_object = zfs_strtonum(buf + 1, &buf);
80 zb->zb_level = (int)zfs_strtonum(buf + 1, &buf);
82 zb
93 spa_log_error(spa_t *spa, const zbookmark_phys_t *zb) argument
167 zbookmark_phys_t zb; local
[all...]
H A Ddmu_traverse.c79 zbookmark_phys_t zb; local
87 SET_BOOKMARK(&zb, td->td_objset, ZB_ZIL_OBJECT, ZB_ZIL_LEVEL,
90 (void) td->td_func(td->td_spa, zilog, bp, &zb, NULL, td->td_arg);
103 zbookmark_phys_t zb; local
111 SET_BOOKMARK(&zb, td->td_objset, lr->lr_foid,
114 (void) td->td_func(td->td_spa, zilog, bp, &zb, NULL,
146 * the block indicated by zb does not need to be visited at all. Returns
154 const zbookmark_phys_t *zb)
161 if (zbookmark_subtree_completed(dnp, zb, td->td_resume))
168 if (bcmp(zb, t
153 resume_skip_check(traverse_data_t *td, const dnode_phys_t *dnp, const zbookmark_phys_t *zb) argument
178 traverse_prefetch_metadata(traverse_data_t *td, const blkptr_t *bp, const zbookmark_phys_t *zb) argument
216 traverse_visitbp(traverse_data_t *td, const dnode_phys_t *dnp, const blkptr_t *bp, const zbookmark_phys_t *zb) argument
518 traverse_prefetcher(spa_t *spa, zilog_t *zilog, const blkptr_t *bp, const zbookmark_phys_t *zb, const dnode_phys_t *dnp, void *arg) argument
[all...]
H A Ddmu_send.c89 zbookmark_phys_t zb; member in struct:send_block_record
583 SET_BOOKMARK(&(record.zb), dmu_objset_id(dsp->dsa_os),
664 const zbookmark_phys_t *zb, const struct dnode_phys *dnp, void *arg)
671 ASSERT(zb->zb_object == DMU_META_DNODE_OBJECT ||
672 zb->zb_object >= sta->resume.zb_object);
679 ASSERT3U(zb->zb_level, ==, ZB_DNODE_LEVEL);
681 } else if (zb->zb_level < 0) {
688 record->zb = *zb;
734 const zbookmark_phys_t *zb local
663 send_cb(spa_t *spa, zilog_t *zilog, const blkptr_t *bp, const zbookmark_phys_t *zb, const struct dnode_phys *dnp, void *arg) argument
980 zbookmark_phys_t zb; local
1239 zfs_bookmark_phys_t zb = { 0 }; local
1315 zfs_bookmark_phys_t zb = { 0 }; local
1490 dmu_calculate_send_traversal(spa_t *spa, zilog_t *zilog, const blkptr_t *bp, const zbookmark_phys_t *zb, const dnode_phys_t *dnp, void *arg) argument
[all...]
H A Ddmu_diff.c110 const zbookmark_phys_t *zb, const dnode_phys_t *dnp, void *arg)
118 if (bp == NULL || zb->zb_object != DMU_META_DNODE_OBJECT)
122 uint64_t span = DBP_SPAN(dnp, zb->zb_level);
123 uint64_t dnobj = (zb->zb_blkid * span) >> DNODE_SHIFT;
129 } else if (zb->zb_level == 0) {
141 ZIO_PRIORITY_ASYNC_READ, zio_flags, &aflags, zb) != 0)
146 uint64_t dnobj = (zb->zb_blkid <<
109 diff_cb(spa_t *spa, zilog_t *zilog, const blkptr_t *bp, const zbookmark_phys_t *zb, const dnode_phys_t *dnp, void *arg) argument
H A Ddsl_scan.c332 const zbookmark_phys_t *zb, dsl_scan_io_queue_t *queue);
1267 dsl_scan_check_suspend(dsl_scan_t *scn, const zbookmark_phys_t *zb)
1270 if (zb && (int64_t)zb->zb_object < 0)
1280 if (zb && zb->zb_level != 0)
1311 if (zb) {
1313 (longlong_t)zb->zb_objset,
1314 (longlong_t)zb->zb_object,
1315 (longlong_t)zb
1265 dsl_scan_check_suspend(dsl_scan_t *scn, const zbookmark_phys_t *zb) argument
1345 zbookmark_phys_t zb; local
1377 zbookmark_phys_t zb; local
1478 dsl_scan_check_prefetch_resume(scan_prefetch_ctx_t *spc, const zbookmark_phys_t *zb) argument
1500 dsl_scan_prefetch(scan_prefetch_ctx_t *spc, blkptr_t *bp, zbookmark_phys_t *zb) argument
1548 zbookmark_phys_t zb; local
1574 dsl_scan_prefetch_cb(zio_t *zio, const zbookmark_phys_t *zb, const blkptr_t *bp, arc_buf_t *buf, void *private) argument
1706 dsl_scan_check_resume(dsl_scan_t *scn, const dnode_phys_t *dnp, const zbookmark_phys_t *zb) argument
1753 dsl_scan_recurse(dsl_scan_t *scn, dsl_dataset_t *ds, dmu_objset_type_t ostype, dnode_phys_t *dnp, const blkptr_t *bp, const zbookmark_phys_t *zb, dmu_tx_t *tx) argument
1881 dsl_scan_visitbp(blkptr_t *bp, const zbookmark_phys_t *zb, dnode_phys_t *dnp, dsl_dataset_t *ds, dsl_scan_t *scn, dmu_objset_type_t ostype, dmu_tx_t *tx) argument
1958 zbookmark_phys_t zb; local
2450 zbookmark_phys_t zb = { 0 }; local
3663 zfs_blkstat_t *zb = &zab->zab_type[l][t]; local
3723 scan_io_queue_insert(dsl_scan_io_queue_t *queue, const blkptr_t *bp, int dva_i, int zio_flags, const zbookmark_phys_t *zb) argument
3752 dsl_scan_enqueue(dsl_pool_t *dp, const blkptr_t *bp, int zio_flags, const zbookmark_phys_t *zb) argument
3786 dsl_scan_scrub_cb(dsl_pool_t *dp, const blkptr_t *bp, const zbookmark_phys_t *zb) argument
3883 scan_exec_io(dsl_pool_t *dp, const blkptr_t *bp, int zio_flags, const zbookmark_phys_t *zb, dsl_scan_io_queue_t *queue) argument
[all...]
H A Dzfs_fm.c107 const char *subclass, spa_t *spa, vdev_t *vd, const zbookmark_phys_t *zb,
339 if (zb != NULL && (zio == NULL || zio->io_logical != NULL))
342 DATA_TYPE_UINT64, zb->zb_objset,
344 DATA_TYPE_UINT64, zb->zb_object,
346 DATA_TYPE_INT64, zb->zb_level,
348 DATA_TYPE_UINT64, zb->zb_blkid, NULL);
679 const struct zbookmark_phys *zb, zio_t *zio, uint64_t stateoroffset,
687 zb, zio, stateoroffset, size);
700 zfs_ereport_start_checksum(spa_t *spa, vdev_t *vd, const zbookmark_phys_t *zb, argument
722 FM_EREPORT_ZFS_CHECKSUM, spa, vd, zb, zi
106 zfs_ereport_start(nvlist_t **ereport_out, nvlist_t **detector_out, const char *subclass, spa_t *spa, vdev_t *vd, const zbookmark_phys_t *zb, zio_t *zio, uint64_t stateoroffset, uint64_t size) argument
678 zfs_ereport_post(const char *subclass, spa_t *spa, vdev_t *vd, const struct zbookmark_phys *zb, zio_t *zio, uint64_t stateoroffset, uint64_t size) argument
790 zfs_ereport_post_checksum(spa_t *spa, vdev_t *vd, const zbookmark_phys_t *zb, struct zio *zio, uint64_t offset, uint64_t length, const abd_t *good_data, const abd_t *bad_data, zio_bad_cksum_t *zbc) argument
[all...]
H A Dzio_inject.c105 zio_match_handler(zbookmark_phys_t *zb, uint64_t type, int dva, argument
111 if (zb->zb_objset == DMU_META_OBJSET &&
125 if (zb->zb_objset == record->zi_objset &&
126 zb->zb_object == record->zi_object &&
127 zb->zb_level == record->zi_level &&
128 zb->zb_blkid >= record->zi_start &&
129 zb->zb_blkid <= record->zi_end &&
201 zio_handle_decrypt_injection(spa_t *spa, const zbookmark_phys_t *zb, argument
216 if (zio_match_handler((zbookmark_phys_t *)zb, type, ZI_NO_DVA,
H A Ddbuf.c946 dbuf_read_done(zio_t *zio, const zbookmark_phys_t *zb, const blkptr_t *bp, argument
1008 zbookmark_phys_t zb; local
1025 SET_BOOKMARK(&zb, dmu_objset_id(os),
1027 err = arc_untransform(dnode_abuf, os->os_spa, &zb, B_TRUE);
1049 zbookmark_phys_t zb; local
1131 SET_BOOKMARK(&zb, dmu_objset_id(db->db_objset),
1139 spa_log_error(db->db_objset->os_spa, &zb);
1172 &aflags, &zb);
1301 zbookmark_phys_t zb; local
1303 SET_BOOKMARK(&zb, dmu_objset_i
2587 dbuf_prefetch_indirect_done(zio_t *zio, const zbookmark_phys_t *zb, const blkptr_t *iobp, arc_buf_t *abuf, void *private) argument
2648 zbookmark_phys_t zb; local
2781 zbookmark_phys_t zb; local
3339 zbookmark_phys_t zb; local
4044 zbookmark_phys_t zb; local
[all...]
H A Dbptree.c153 const zbookmark_phys_t *zb, const dnode_phys_t *dnp, void *arg)
152 bptree_visit_cb(spa_t *spa, zilog_t *zilog, const blkptr_t *bp, const zbookmark_phys_t *zb, const dnode_phys_t *dnp, void *arg) argument
H A Darc.c2174 arc_hdr_decrypt(arc_buf_hdr_t *hdr, spa_t *spa, const zbookmark_phys_t *zb) argument
2187 ret = spa_do_crypt_abd(B_FALSE, spa, zb, hdr->b_crypt_hdr.b_ot,
2246 const zbookmark_phys_t *zb, boolean_t noauth)
2260 ret = arc_hdr_authenticate(hdr, spa, zb->zb_objset);
2269 ret = arc_hdr_decrypt(hdr, spa, zb);
2326 arc_buf_fill(arc_buf_t *buf, spa_t *spa, const zbookmark_phys_t *zb, argument
2366 zb, !!(flags & ARC_FILL_NOAUTH));
2508 arc_untransform(arc_buf_t *buf, spa_t *spa, const zbookmark_phys_t *zb, argument
2517 ret = arc_buf_fill(buf, spa, zb, flags);
2524 spa_log_error(spa, zb);
2245 arc_fill_hdr_crypt(arc_buf_hdr_t *hdr, kmutex_t *hash_lock, spa_t *spa, const zbookmark_phys_t *zb, boolean_t noauth) argument
3000 arc_buf_alloc_impl(arc_buf_hdr_t *hdr, spa_t *spa, const zbookmark_phys_t *zb, void *tag, boolean_t encrypted, boolean_t compressed, boolean_t noauth, boolean_t fill, arc_buf_t **ret) argument
5578 arc_bcopy_func(zio_t *zio, const zbookmark_phys_t *zb, const blkptr_t *bp, arc_buf_t *buf, void *arg) argument
5590 arc_getbuf_func(zio_t *zio, const zbookmark_phys_t *zb, const blkptr_t *bp, arc_buf_t *buf, void *arg) argument
5909 arc_read(zio_t *pio, spa_t *spa, const blkptr_t *bp, arc_read_done_func_t *done, void *private, zio_priority_t priority, int zio_flags, arc_flags_t *arc_flags, const zbookmark_phys_t *zb) argument
6908 arc_write(zio_t *pio, spa_t *spa, uint64_t txg, blkptr_t *bp, arc_buf_t *buf, boolean_t l2arc, const zio_prop_t *zp, arc_write_done_func_t *ready, arc_write_done_func_t *children_ready, arc_write_done_func_t *physdone, arc_write_done_func_t *done, void *private, zio_priority_t priority, int zio_flags, const zbookmark_phys_t *zb) argument
[all...]
H A Dzil.c203 zbookmark_phys_t zb; local
215 SET_BOOKMARK(&zb, bp->blk_cksum.zc_word[ZIL_ZC_OBJSET],
219 &abuf, ZIO_PRIORITY_SYNC_READ, zio_flags, &aflags, &zb);
282 zbookmark_phys_t zb; local
302 SET_BOOKMARK(&zb, dmu_objset_id(zilog->zl_os), lr->lr_foid,
306 ZIO_PRIORITY_SYNC_READ, zio_flags, &aflags, &zb);
1317 zbookmark_phys_t zb; local
1325 SET_BOOKMARK(&zb, lwb->lwb_blk.blk_cksum.zc_word[ZIL_ZC_OBJSET],
1345 prio, ZIO_FLAG_CANFAIL | ZIO_FLAG_DONT_PROPAGATE, &zb);
H A Ddmu_objset.c430 zbookmark_phys_t zb; local
433 SET_BOOKMARK(&zb, ds ? ds->ds_object : DMU_META_OBJSET,
448 ZIO_PRIORITY_SYNC_READ, zio_flags, &aflags, &zb);
731 zbookmark_phys_t zb; local
733 SET_BOOKMARK(&zb, ds->ds_object, ZB_ROOT_OBJECT,
736 &zb, B_FALSE);
1642 zbookmark_phys_t zb; local
1668 SET_BOOKMARK(&zb, os->os_dsl_dataset ?
1691 os, ZIO_PRIORITY_ASYNC_WRITE, ZIO_FLAG_MUSTSUCCEED, &zb);
H A Ddmu.c1945 zio_prop_t *zp, zbookmark_phys_t *zb)
1998 dsa, ZIO_PRIORITY_SYNC_WRITE, ZIO_FLAG_CANFAIL, zb));
2036 zbookmark_phys_t zb; local
2043 SET_BOOKMARK(&zb, ds->ds_object,
2055 return (dmu_sync_late_arrival(pio, os, done, zgd, &zp, &zb));
2079 return (dmu_sync_late_arrival(pio, os, done, zgd, &zp, &zb));
2165 ZIO_PRIORITY_SYNC_WRITE, ZIO_FLAG_CANFAIL, &zb));
1944 dmu_sync_late_arrival(zio_t *pio, objset_t *os, dmu_sync_cb_t *done, zgd_t *zgd, zio_prop_t *zp, zbookmark_phys_t *zb) argument
H A Dzio.c691 const zbookmark_phys_t *zb, enum zio_stage stage, enum zio_stage pipeline)
758 if (zb != NULL)
759 zio->io_bookmark = *zb;
926 zio_priority_t priority, enum zio_flag flags, const zbookmark_phys_t *zb)
934 ZIO_TYPE_READ, priority, flags, NULL, 0, zb,
947 const zbookmark_phys_t *zb)
961 ZIO_TYPE_WRITE, priority, flags, NULL, 0, zb,
989 zio_priority_t priority, enum zio_flag flags, zbookmark_phys_t *zb)
994 ZIO_TYPE_WRITE, priority, flags | ZIO_FLAG_IO_REWRITE, NULL, 0, zb,
687 zio_create(zio_t *pio, spa_t *spa, uint64_t txg, const blkptr_t *bp, abd_t *data, uint64_t lsize, uint64_t psize, zio_done_func_t *done, void *private, zio_type_t type, zio_priority_t priority, enum zio_flag flags, vdev_t *vd, uint64_t offset, const zbookmark_phys_t *zb, enum zio_stage stage, enum zio_stage pipeline) argument
924 zio_read(zio_t *pio, spa_t *spa, const blkptr_t *bp, abd_t *data, uint64_t size, zio_done_func_t *done, void *private, zio_priority_t priority, enum zio_flag flags, const zbookmark_phys_t *zb) argument
942 zio_write(zio_t *pio, spa_t *spa, uint64_t txg, blkptr_t *bp, abd_t *data, uint64_t lsize, uint64_t psize, const zio_prop_t *zp, zio_done_func_t *ready, zio_done_func_t *children_ready, zio_done_func_t *physdone, zio_done_func_t *done, void *private, zio_priority_t priority, enum zio_flag flags, const zbookmark_phys_t *zb) argument
987 zio_rewrite(zio_t *pio, spa_t *spa, uint64_t txg, blkptr_t *bp, abd_t *data, uint64_t size, zio_done_func_t *done, void *private, zio_priority_t priority, enum zio_flag flags, zbookmark_phys_t *zb) argument
H A Ddsl_destroy.c643 const zbookmark_phys_t *zb, const dnode_phys_t *dnp, void *arg)
651 if (zb->zb_level == ZB_ZIL_LEVEL) {
642 kill_blkptr(spa_t *spa, zilog_t *zilog, const blkptr_t *bp, const zbookmark_phys_t *zb, const dnode_phys_t *dnp, void *arg) argument
/illumos-gate/usr/src/uts/common/fs/zfs/sys/
H A Dzio.h290 #define SET_BOOKMARK(zb, objset, object, level, blkid) \
292 (zb)->zb_objset = objset; \
293 (zb)->zb_object = object; \
294 (zb)->zb_level = level; \
295 (zb)->zb_blkid = blkid; \
310 #define ZB_IS_ZERO(zb) \
311 ((zb)->zb_objset == 0 && (zb)->zb_object == 0 && \
312 (zb)->zb_level == 0 && (zb)
[all...]
H A Ddmu_traverse.h43 const zbookmark_phys_t *zb, const struct dnode_phys *dnp, void *arg);
H A Darc.h70 typedef void arc_read_done_func_t(zio_t *zio, const zbookmark_phys_t *zb,
190 int arc_untransform(arc_buf_t *buf, spa_t *spa, const zbookmark_phys_t *zb,
226 int flags, arc_flags_t *arc_flags, const zbookmark_phys_t *zb);
232 const zbookmark_phys_t *zb);
H A Ddsl_crypt.h220 int spa_do_crypt_abd(boolean_t encrypt, spa_t *spa, const zbookmark_phys_t *zb,
/illumos-gate/usr/src/cmd/zdb/
H A Dzdb.c1436 const zbookmark_phys_t *zb)
1439 ASSERT(zb->zb_level < 0);
1440 if (zb->zb_object == 0)
1441 return (zb->zb_blkid);
1442 return (zb->zb_blkid * BP_GET_LSIZE(bp));
1445 ASSERT(zb->zb_level >= 0);
1447 return ((zb->zb_blkid <<
1448 (zb->zb_level * (dnp->dn_indblkshift - SPA_BLKPTRSHIFT))) *
1500 print_indirect(blkptr_t *bp, const zbookmark_phys_t *zb, argument
1508 ASSERT3U(BP_GET_LEVEL(bp), ==, zb
1435 blkid2offset(const dnode_phys_t *dnp, const blkptr_t *bp, const zbookmark_phys_t *zb) argument
1528 visit_indirect(spa_t *spa, const dnode_phys_t *dnp, blkptr_t *bp, const zbookmark_phys_t *zb) argument
2975 zdb_blkstats_t *zb = &zcb->zcb_type[l][t]; local
3086 zbookmark_phys_t *zb = &zio->io_bookmark; local
3119 zdb_blkptr_cb(spa_t *spa, zilog_t *zilog, const blkptr_t *bp, const zbookmark_phys_t *zb, const dnode_phys_t *dnp, void *arg) argument
4006 zdb_blkstats_t *zb, *tzb; local
4331 zdb_ddt_add_cb(spa_t *spa, zilog_t *zilog, const blkptr_t *bp, const zbookmark_phys_t *zb, const dnode_phys_t *dnp, void *arg) argument
[all...]
H A Dzdb_il.c154 zbookmark_phys_t zb; local
184 SET_BOOKMARK(&zb, dmu_objset_id(zilog->zl_os),
191 ZIO_PRIORITY_SYNC_READ, ZIO_FLAG_CANFAIL, &zb));
/illumos-gate/usr/src/lib/libzfs/common/
H A Dlibzfs_mount.c1215 zfs_handle_t *zb = *zbp; local
1224 zonedb = zfs_prop_get_int(zb, ZFS_PROP_ZONED);
1235 gotb = (zfs_get_type(zb) == ZFS_TYPE_FILESYSTEM);
1237 verify(zfs_prop_get(zb, ZFS_PROP_MOUNTPOINT, mountb,
1268 return (strcmp(zfs_get_name(za), zfs_get_name(zb)));
H A Dlibzfs_pool.c4109 zbookmark_phys_t *zb = NULL; local
4154 zb = ((zbookmark_phys_t *)(uintptr_t)zc.zc_nvlist_dst) +
4158 qsort(zb, count, sizeof (zbookmark_phys_t), zbookmark_mem_compare);
4169 if (i > 0 && zb[i-1].zb_objset == zb[i].zb_objset &&
4170 zb[i-1].zb_object == zb[i].zb_object)
4176 zb[i].zb_objset) != 0) {
4181 zb[i].zb_object) != 0) {
/illumos-gate/usr/src/uts/common/fs/ufs/
H A Dufs_inode.c1086 uint_t zb; local
1088 zb = (uint_t)((NINDIR(fs) - (last + 1)) * sizeof (daddr32_t));
1090 if (zb) {
1101 bzero((caddr_t)&bap[last + 1], zb);
1105 zb, bp, DT_ABZERO);
/illumos-gate/usr/src/cmd/mdb/common/modules/zfs/
H A Dzfs.c3010 zfs_blkstat_t *zb = &stats.zab_type[level][t]; local
3012 if (zb->zb_asize == 0)
3025 if (level == 0 && zb->zb_asize ==
3029 mdb_nicenum(zb->zb_count, csize);
3030 mdb_nicenum(zb->zb_lsize, lsize);
3031 mdb_nicenum(zb->zb_psize, psize);
3032 mdb_nicenum(zb->zb_asize, asize);
3033 mdb_nicenum(zb->zb_asize / zb->zb_count, avg);
3035 zb
[all...]

Completed in 301 milliseconds

12