Searched refs:zio (Results 1 - 25 of 83) sorted by relevance

1234

/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dzio.c94 * An allocating zio is one that either currently has the DVA allocate
97 #define IO_IS_ALLOCATING(zio) ((zio)->io_orig_pipeline & ZIO_STAGE_DVA_ALLOCATE)
275 zio_push_transform(zio_t *zio, void *data, uint64_t size, uint64_t bufsize, argument
280 zt->zt_orig_data = zio->io_data;
281 zt->zt_orig_size = zio->io_size;
285 zt->zt_next = zio->io_transform_stack;
286 zio->io_transform_stack = zt;
288 zio->io_data = data;
289 zio
293 zio_pop_transforms(zio_t *zio) argument
319 zio_subblock(zio_t *zio, void *data, uint64_t size) argument
328 zio_decompress(zio_t *zio, void *data, uint64_t size) argument
433 zio_wait_for_children(zio_t *zio, enum zio_child child, enum zio_wait_type wait) argument
452 zio_notify_parent(zio_t *pio, zio_t *zio, enum zio_wait_type wait) argument
484 zio_inherit_child_errors(zio_t *zio, enum zio_child c) argument
526 zio_t *zio; local
606 zio_destroy(zio_t *zio) argument
620 zio_t *zio; local
722 zio_t *zio; local
743 zio_t *zio; local
782 zio_t *zio; local
792 zio_write_override(zio_t *zio, blkptr_t *bp, int copies, boolean_t nopwrite) argument
842 zio_t *zio; local
874 zio_t *zio; local
909 zio_t *zio; local
934 zio_t *zio; local
955 zio_t *zio; local
992 zio_t *zio; local
1057 zio_t *zio; local
1071 zio_flush(zio_t *zio, vdev_t *vd) argument
1079 zio_shrink(zio_t *zio, uint64_t size) argument
1105 zio_read_bp_init(zio_t *zio) argument
1139 zio_write_bp_init(zio_t *zio) argument
1198 zio_write_compress(zio_t *zio) argument
1368 zio_free_bp_init(zio_t *zio) argument
1387 zio_taskq_dispatch(zio_t *zio, zio_taskq_type_t q, boolean_t cutinline) argument
1428 zio_taskq_member(zio_t *zio, zio_taskq_type_t q) argument
1446 zio_issue_async(zio_t *zio) argument
1454 zio_interrupt(zio_t *zio) argument
1460 zio_delay_interrupt(zio_t *zio) argument
1530 zio_execute(zio_t *zio) argument
1585 zio_wait(zio_t *zio) argument
1610 zio_nowait(zio_t *zio) argument
1691 zio_suspend(spa_t *spa, zio_t *zio) argument
1832 zio_t *zio; local
1948 zio_gang_tree_assemble_done(zio_t *zio) argument
1979 zio_t *zio; local
2011 zio_gang_assemble(zio_t *zio) argument
2026 zio_gang_issue(zio_t *zio) argument
2047 zio_write_gang_member_ready(zio_t *zio) argument
2083 zio_t *zio; local
2220 zio_nop_write(zio_t *zio) argument
2275 zio_ddt_child_read_done(zio_t *zio) argument
2294 zio_ddt_read_start(zio_t *zio) argument
2337 zio_ddt_read_done(zio_t *zio) argument
2374 zio_ddt_collision(zio_t *zio, ddt_t *ddt, ddt_entry_t *dde) argument
2450 zio_ddt_child_write_ready(zio_t *zio) argument
2475 zio_ddt_child_write_done(zio_t *zio) argument
2500 zio_ddt_ditto_write_done(zio_t *zio) argument
2529 zio_ddt_write(zio_t *zio) argument
2646 zio_ddt_free(zio_t *zio) argument
2675 zio_t *zio; local
2701 zio_dva_throttle(zio_t *zio) argument
2749 zio_t *zio; local
2763 zio_dva_allocate(zio_t *zio) argument
2809 zio_dva_free(zio_t *zio) argument
2817 zio_dva_claim(zio_t *zio) argument
2834 zio_dva_unallocate(zio_t *zio, zio_gang_node_t *gn, blkptr_t *bp) argument
2923 zio_vdev_io_start(zio_t *zio) argument
3041 zio_vdev_io_done(zio_t *zio) argument
3097 zio_vsd_default_cksum_report(zio_t *zio, zio_cksum_report_t *zcr, void *ignored) argument
3110 zio_vdev_io_assess(zio_t *zio) argument
3188 zio_vdev_io_reissue(zio_t *zio) argument
3197 zio_vdev_io_redone(zio_t *zio) argument
3205 zio_vdev_io_bypass(zio_t *zio) argument
3220 zio_checksum_generate(zio_t *zio) argument
3251 zio_checksum_verify(zio_t *zio) argument
3287 zio_checksum_verified(zio_t *zio) argument
3324 zio_ready(zio_t *zio) argument
3358 zio->io_prop.zp_copies, zio); local
3400 zio_dva_throttle_done(zio_t *zio) argument
3457 zio_done(zio_t *zio) argument
[all...]
H A Dvdev_mirror.c33 #include <sys/zio.h>
60 vdev_mirror_map_free(zio_t *zio) argument
62 mirror_map_t *mm = zio->io_vsd;
73 vdev_mirror_map_alloc(zio_t *zio) argument
77 vdev_t *vd = zio->io_vd;
81 dva_t *dva = zio->io_bp->blk_dva;
82 spa_t *spa = zio->io_spa;
84 c = BP_GET_NDVAS(zio->io_bp);
118 (zio->io_offset >> vdev_mirror_shift) % c;
124 mc->mc_offset = zio
177 vdev_mirror_child_done(zio_t *zio) argument
187 vdev_mirror_scrub_done(zio_t *zio) argument
217 vdev_mirror_child_select(zio_t *zio) argument
265 vdev_mirror_io_start(zio_t *zio) argument
334 vdev_mirror_io_done(zio_t *zio) argument
[all...]
H A Dvdev_missing.c43 #include <sys/zio.h>
70 vdev_missing_io_start(zio_t *zio) argument
72 zio->io_error = SET_ERROR(ENOTSUP);
73 zio_execute(zio);
78 vdev_missing_io_done(zio_t *zio) argument
H A Dvdev_queue.c34 #include <sys/zio.h>
251 sizeof (zio_t), offsetof(struct zio, io_queue_node));
254 offsetof(struct zio, io_offset_node));
257 offsetof(struct zio, io_offset_node));
273 sizeof (zio_t), offsetof(struct zio, io_queue_node));
292 vdev_queue_io_add(vdev_queue_t *vq, zio_t *zio) argument
294 spa_t *spa = zio->io_spa;
296 ASSERT3U(zio->io_priority, <, ZIO_PRIORITY_NUM_QUEUEABLE);
297 avl_add(vdev_queue_class_tree(vq, zio->io_priority), zio);
308 vdev_queue_io_remove(vdev_queue_t *vq, zio_t *zio) argument
325 vdev_queue_pending_add(vdev_queue_t *vq, zio_t *zio) argument
341 vdev_queue_pending_remove(vdev_queue_t *vq, zio_t *zio) argument
507 vdev_queue_aggregate(vdev_queue_t *vq, zio_t *zio) argument
647 zio_t *zio, *aio; local
705 vdev_queue_io(zio_t *zio) argument
749 vdev_queue_io_done(zio_t *zio) argument
[all...]
H A Dvdev_file.c31 #include <sys/zio.h>
154 zio_t *zio = vb->vb_io; local
156 zio->io_error = (geterror(bp) != 0 ? EIO : 0);
157 if (zio->io_error == 0 && bp->b_resid != 0)
158 zio->io_error = SET_ERROR(ENOSPC);
161 zio_delay_interrupt(zio);
186 vdev_file_io_start(zio_t *zio) argument
188 vdev_t *vd = zio->io_vd;
193 if (zio->io_type == ZIO_TYPE_IOCTL) {
196 zio
237 vdev_file_io_done(zio_t *zio) argument
[all...]
H A Dvdev_cache.c32 #include <sys/zio.h>
159 vdev_cache_allocate(zio_t *zio) argument
161 vdev_cache_t *vc = &zio->io_vd->vdev_cache;
162 uint64_t offset = P2ALIGN(zio->io_offset, VCBS);
195 vdev_cache_hit(vdev_cache_t *vc, vdev_cache_entry_t *ve, zio_t *zio) argument
197 uint64_t cache_phase = P2PHASE(zio->io_offset, VCBS);
209 bcopy(ve->ve_data + cache_phase, zio->io_data, zio->io_size);
255 vdev_cache_read(zio_t *zio) argument
257 vdev_cache_t *vc = &zio
332 vdev_cache_write(zio_t *zio) argument
[all...]
H A Dvdev_label.c146 #include <sys/zio.h>
181 vdev_label_read(zio_t *zio, vdev_t *vd, int l, void *buf, uint64_t offset, argument
184 ASSERT(spa_config_held(zio->io_spa, SCL_STATE_ALL, RW_WRITER) ==
188 zio_nowait(zio_read_phys(zio, vd,
195 vdev_label_write(zio_t *zio, vdev_t *vd, int l, void *buf, uint64_t offset, argument
198 ASSERT(spa_config_held(zio->io_spa, SCL_ALL, RW_WRITER) == SCL_ALL ||
199 (spa_config_held(zio->io_spa, SCL_CONFIG | SCL_STATE, RW_READER) ==
201 dsl_pool_sync_context(spa_get_dsl(zio->io_spa))));
204 zio_nowait(zio_write_phys(zio, vd,
447 zio_t *zio; local
641 zio_t *zio; local
895 vdev_uberblock_load_done(zio_t *zio) argument
925 vdev_uberblock_load_impl(zio_t *zio, vdev_t *vd, int flags, struct ubl_cbdata *cbp) argument
953 zio_t *zio; local
989 vdev_uberblock_sync_done(zio_t *zio) argument
1001 vdev_uberblock_sync(zio_t *zio, uberblock_t *ub, vdev_t *vd, int flags) argument
1035 zio_t *zio; local
1064 vdev_label_sync_done(zio_t *zio) argument
1076 vdev_label_sync_top_done(zio_t *zio) argument
1090 vdev_label_sync_ignore_done(zio_t *zio) argument
1099 vdev_label_sync(zio_t *zio, vdev_t *vd, int l, uint64_t txg, int flags) argument
1145 zio_t *zio; local
1199 zio_t *zio; local
[all...]
H A Dvdev_disk.c34 #include <sys/zio.h>
649 zio_t *zio = vb->vb_io; local
652 * The rest of the zio stack only deals with EIO, ECKSUM, and ENXIO.
656 zio->io_error = (geterror(bp) != 0 ? EIO : 0);
658 if (zio->io_error == 0 && bp->b_resid != 0)
659 zio->io_error = SET_ERROR(EIO);
663 zio_delay_interrupt(zio);
667 vdev_disk_ioctl_free(zio_t *zio) argument
669 kmem_free(zio->io_vsd, sizeof (struct dk_callback));
680 zio_t *zio local
688 vdev_disk_io_start(zio_t *zio) argument
782 vdev_disk_io_done(zio_t *zio) argument
[all...]
H A Dzfs_fm.c34 #include <sys/zio.h>
107 const char *subclass, spa_t *spa, vdev_t *vd, zio_t *zio,
132 if (zio != NULL) {
134 * If this is not a read or write zio, ignore the error. This
137 if (zio->io_type != ZIO_TYPE_READ &&
138 zio->io_type != ZIO_TYPE_WRITE)
145 if (zio->io_flags & ZIO_FLAG_SPECULATIVE)
153 if (zio->io_error == EIO &&
154 !(zio->io_flags & ZIO_FLAG_IO_RETRY))
167 if (zio
106 zfs_ereport_start(nvlist_t **ereport_out, nvlist_t **detector_out, const char *subclass, spa_t *spa, vdev_t *vd, zio_t *zio, uint64_t stateoroffset, uint64_t size) argument
669 zfs_ereport_post(const char *subclass, spa_t *spa, vdev_t *vd, zio_t *zio, uint64_t stateoroffset, uint64_t size) argument
690 zfs_ereport_start_checksum(spa_t *spa, vdev_t *vd, struct zio *zio, uint64_t offset, uint64_t length, void *arg, zio_bad_cksum_t *info) argument
780 zfs_ereport_post_checksum(spa_t *spa, vdev_t *vd, struct zio *zio, uint64_t offset, uint64_t length, const void *good_data, const void *bad_data, zio_bad_cksum_t *zbc) argument
[all...]
H A Dzio_inject.c167 zio_handle_fault_injection(zio_t *zio, int error) argument
175 if (zio->io_logical == NULL)
181 if (zio->io_type != ZIO_TYPE_READ)
189 if (zio->io_spa != handler->zi_spa ||
194 if (zio_match_handler(&zio->io_logical->io_bookmark,
195 zio->io_bp ? BP_GET_TYPE(zio->io_bp) : DMU_OT_NONE,
208 * Determine if the zio is part of a label update and has an injection
214 zio_handle_label_injection(zio_t *zio, int error) argument
217 vdev_t *vd = zio
257 zio_handle_device_injection(vdev_t *vd, zio_t *zio, int error) argument
333 zio_handle_ignored_writes(zio_t *zio) argument
402 zio_handle_io_delay(zio_t *zio) argument
[all...]
H A Dzio_checksum.c31 #include <sys/zio.h>
253 zio_checksum_compute(zio_t *zio, enum zio_checksum checksum, argument
256 blkptr_t *bp = zio->io_bp;
257 uint64_t offset = zio->io_offset;
260 spa_t *spa = zio->io_spa;
377 zio_checksum_error(zio_t *zio, zio_bad_cksum_t *info) argument
379 blkptr_t *bp = zio->io_bp;
380 uint_t checksum = (bp == NULL ? zio->io_prop.zp_checksum :
383 uint64_t size = (bp == NULL ? zio->io_size :
385 uint64_t offset = zio
[all...]
H A Dvdev_raidz.c35 #include <sys/zio.h>
286 vdev_raidz_map_free_vsd(zio_t *zio) argument
288 raidz_map_t *rm = zio->io_vsd;
389 vdev_raidz_cksum_report(zio_t *zio, zio_cksum_report_t *zcr, void *arg) argument
394 raidz_map_t *rm = zio->io_vsd;
411 * to copy the data aside; there's no guarantee that our zio's buffer
451 /* The zio's size in units of the vdev's minimum sector size. */
1689 vdev_raidz_child_done(zio_t *zio) argument
1691 raidz_col_t *rc = zio->io_private;
1693 rc->rc_error = zio
1716 vdev_raidz_io_start(zio_t *zio) argument
1812 raidz_checksum_error(zio_t *zio, raidz_col_t *rc, void *bad_data) argument
1838 raidz_checksum_verify(zio_t *zio) argument
1857 raidz_parity_verify(zio_t *zio, raidz_map_t *rm) argument
1920 vdev_raidz_combrec(zio_t *zio, int total_errors, int data_errors) argument
2089 vdev_raidz_io_done(zio_t *zio) argument
[all...]
H A Darc.c256 #include <sys/zio.h>
349 * log2 fraction of the zio arena to keep free.
916 * compression, and is set in the arc's zio completion handlers.
1523 arc_cksum_is_equal(arc_buf_hdr_t *hdr, zio_t *zio) argument
1525 enum zio_compress compress = BP_GET_COMPRESS(zio->io_bp);
1528 ASSERT(!BP_IS_EMBEDDED(zio->io_bp));
1529 VERIFY3U(BP_GET_PSIZE(zio->io_bp), ==, HDR_GET_PSIZE(hdr));
1549 csize = zio_compress_data(compress, zio->io_data, cbuf, lsize);
1567 zio_push_transform(zio, cbuf, csize, HDR_GET_PSIZE(hdr), NULL);
1574 * individual gang member. The zio pipelin
4515 arc_bcopy_func(zio_t *zio, arc_buf_t *buf, void *arg) argument
4524 arc_getbuf_func(zio_t *zio, arc_buf_t *buf, void *arg) argument
4553 arc_read_done(zio_t *zio) argument
5330 arc_write_ready(zio_t *zio) argument
5410 arc_write_children_ready(zio_t *zio) argument
5423 arc_write_physdone(zio_t *zio) argument
5431 arc_write_done(zio_t *zio) argument
5522 zio_t *zio; local
6345 l2arc_write_done(zio_t *zio) argument
6461 l2arc_read_done(zio_t *zio) argument
[all...]
H A Ddmu.c438 zio_t *zio; local
470 zio = zio_root(dn->dn_objset->os_spa, NULL, NULL, ZIO_FLAG_CANFAIL);
477 zio_nowait(zio);
483 (void) dbuf_read(db, zio, dbuf_flags);
495 err = zio_wait(zio);
1446 dmu_sync_ready(zio_t *zio, arc_buf_t *buf, void *varg) argument
1450 blkptr_t *bp = zio->io_bp;
1452 if (zio->io_error == 0) {
1467 dmu_sync_late_arrival_ready(zio_t *zio) argument
1469 dmu_sync_ready(zio, NUL
1474 dmu_sync_done(zio_t *zio, arc_buf_t *buf, void *varg) argument
1523 dmu_sync_late_arrival_done(zio_t *zio) argument
[all...]
/illumos-gate/usr/src/uts/common/fs/zfs/sys/
H A Dblkptr.h24 #include <sys/zio.h>
H A Duberblock.h34 #include <sys/zio.h>
H A Dzio.h199 #define ZIO_DDT_CHILD_FLAGS(zio) \
200 (((zio)->io_flags & ZIO_FLAG_DDT_INHERIT) | \
203 #define ZIO_GANG_CHILD_FLAGS(zio) \
204 (((zio)->io_flags & ZIO_FLAG_GANG_INHERIT) | \
207 #define ZIO_VDEV_CHILD_FLAGS(zio) \
208 (((zio)->io_flags & ZIO_FLAG_VDEV_INHERIT) | \
232 typedef void zio_done_func_t(zio_t *zio);
325 typedef void zio_vsd_cksum_report_f(zio_t *zio, zio_cksum_report_t *zcr,
340 typedef zio_t *zio_gang_issue_func_t(zio_t *zio, blkptr_t *bp,
343 typedef void zio_transform_func_t(zio_t *zio, voi
377 struct zio { struct
[all...]
H A Dzio_checksum.h30 #include <sys/zio.h>
102 extern void zio_checksum_compute(zio_t *zio, enum zio_checksum checksum,
106 extern int zio_checksum_error(zio_t *zio, zio_bad_cksum_t *out);
H A Dvdev.h31 #include <sys/zio.h>
92 extern void vdev_stat_update(zio_t *zio, uint64_t psize);
114 extern boolean_t vdev_accessible(vdev_t *vd, zio_t *zio);
118 extern boolean_t vdev_cache_read(zio_t *zio);
119 extern void vdev_cache_write(zio_t *zio);
124 extern zio_t *vdev_queue_io(zio_t *zio);
125 extern void vdev_queue_io_done(zio_t *zio);
H A Ddmu_traverse.h31 #include <sys/zio.h>
H A Dbptree.h29 #include <sys/zio.h>
/illumos-gate/usr/src/grub/grub-0.97/stage2/zfs-include/
H A Dzio.h30 #define ZEC_MAGIC 0x210da7ab10c7a11ULL /* zio data bloc tail */
49 #define ZIO_GET_IOSIZE(zio) \
50 (BP_IS_GANG((zio)->io_bp) ? \
51 SPA_GANGBLOCKSIZE : BP_GET_PSIZE((zio)->io_bp))
/illumos-gate/usr/src/uts/intel/zfs/
H A Dspa_boot.c31 #include <sys/zio.h>
/illumos-gate/usr/src/uts/sparc/zfs/
H A Dspa_boot.c31 #include <sys/zio.h>
/illumos-gate/usr/src/test/zfs-tests/tests/perf/scripts/
H A Dprefetch_io.d61 this->zio = args[0];
62 this->hdr = (arc_buf_hdr_t *)this->zio->io_private;

Completed in 116 milliseconds

1234