HomeSort by: relevance | last modified time | path
    Searched refs:zio (Results 1 - 25 of 80) sorted by relevancy

1 2 3 4

  /src/external/cddl/osnet/dist/uts/common/fs/zfs/
zio.c 47 SYSCTL_NODE(_vfs_zfs, OID_AUTO, zio, CTLFLAG_RW, 0, "ZFS ZIO");
58 "Use uma(9) for ZIO allocations");
133 * An allocating zio is one that either currently has the DVA allocate
136 #define IO_IS_ALLOCATING(zio) ((zio)->io_orig_pipeline & ZIO_STAGE_DVA_ALLOCATE)
360 zio_push_transform(zio_t *zio, void *data, uint64_t size, uint64_t bufsize,
365 zt->zt_orig_data = zio->io_data;
366 zt->zt_orig_size = zio->io_size;
370 zt->zt_next = zio->io_transform_stack
626 zio_t *zio; local
717 zio_t *zio; local
819 zio_t *zio; local
840 zio_t *zio; local
879 zio_t *zio; local
940 zio_t *zio; local
977 zio_t *zio; local
1013 zio_t *zio; local
1038 zio_t *zio; local
1059 zio_t *zio; local
1096 zio_t *zio; local
1165 zio_t *zio; local
1953 zio_t *zio; local
2101 zio_t *zio; local
2205 zio_t *zio; local
2773 zio_t *zio; local
2847 zio_t *zio; local
3497 zio->io_prop.zp_copies, zio); local
    [all...]
vdev_mirror.c 33 #include <sys/zio.h>
138 vdev_mirror_map_free(zio_t *zio)
140 mirror_map_t *mm = zio->io_vsd;
202 vdev_mirror_map_init(zio_t *zio)
206 vdev_t *vd = zio->io_vd;
210 dva_t *dva = zio->io_bp->blk_dva;
211 spa_t *spa = zio->io_spa;
213 mm = vdev_mirror_map_alloc(BP_GET_NDVAS(zio->io_bp), B_FALSE,
227 mc->mc_offset = zio->io_offset;
231 zio->io_vsd = mm
    [all...]
vdev_queue.c 34 #include <sys/zio.h>
367 sizeof (zio_t), offsetof(struct zio, io_queue_node));
370 offsetof(struct zio, io_offset_node));
373 offsetof(struct zio, io_offset_node));
389 sizeof (zio_t), offsetof(struct zio, io_queue_node));
410 vdev_queue_io_add(vdev_queue_t *vq, zio_t *zio)
412 spa_t *spa = zio->io_spa;
416 ASSERT3U(zio->io_priority, <, ZIO_PRIORITY_NUM_QUEUEABLE);
417 avl_add(vdev_queue_class_tree(vq, zio->io_priority), zio);
797 zio_t *zio, *aio; local
    [all...]
vdev_missing.c 43 #include <sys/zio.h>
71 vdev_missing_io_start(zio_t *zio)
73 zio->io_error = SET_ERROR(ENOTSUP);
74 zio_execute(zio);
79 vdev_missing_io_done(zio_t *zio)
vdev_cache.c 32 #include <sys/zio.h>
168 vdev_cache_allocate(zio_t *zio)
170 vdev_cache_t *vc = &zio->io_vd->vdev_cache;
171 uint64_t offset = P2ALIGN(zio->io_offset, VCBS);
204 vdev_cache_hit(vdev_cache_t *vc, vdev_cache_entry_t *ve, zio_t *zio)
206 uint64_t cache_phase = P2PHASE(zio->io_offset, VCBS);
218 bcopy(ve->ve_data + cache_phase, zio->io_data, zio->io_size);
264 vdev_cache_read(zio_t *zio)
266 vdev_cache_t *vc = &zio->io_vd->vdev_cache
    [all...]
vdev_file.c 30 #include <sys/zio.h>
161 vdev_file_io_start(zio_t *zio)
163 vdev_t *vd = zio->io_vd;
169 zio->io_error = SET_ERROR(ENXIO);
170 zio_interrupt(zio);
177 if (zio->io_type == ZIO_TYPE_IOCTL) {
178 switch (zio->io_cmd) {
180 zio->io_error = VOP_FSYNC(vp, FSYNC | FDSYNC,
184 zio->io_error = SET_ERROR(ENOTSUP);
187 zio_execute(zio);
    [all...]
vdev_label.c 146 #include <sys/zio.h>
187 vdev_label_read(zio_t *zio, vdev_t *vd, int l, void *buf, uint64_t offset,
190 ASSERT(spa_config_held(zio->io_spa, SCL_STATE_ALL, RW_WRITER) ==
194 zio_nowait(zio_read_phys(zio, vd,
201 vdev_label_write(zio_t *zio, vdev_t *vd, int l, void *buf, uint64_t offset,
204 ASSERT(spa_config_held(zio->io_spa, SCL_ALL, RW_WRITER) == SCL_ALL ||
205 (spa_config_held(zio->io_spa, SCL_CONFIG | SCL_STATE, RW_READER) ==
207 dsl_pool_sync_context(spa_get_dsl(zio->io_spa))));
210 zio_nowait(zio_write_phys(zio, vd,
453 zio_t *zio; local
647 zio_t *zio; local
878 zio_t *zio; local
1008 zio_t *zio; local
1090 zio_t *zio; local
1200 zio_t *zio; local
1254 zio_t *zio; local
    [all...]
zfs_fm.c 34 #include <sys/zio.h>
77 * of ZIO. Typically, 'physical I/O' simply means that there is no attached
88 * We keep track of the ENA for a ZIO chain through the 'io_logical' member.
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 &
    [all...]
vdev_disk.c 34 #include <sys/zio.h>
391 zio_t *zio = bp->b_private; local
394 * The rest of the zio stack only deals with EIO, ECKSUM, and ENXIO.
398 zio->io_error = (geterror(bp) != 0 ? SET_ERROR(EIO) : 0);
400 if (zio->io_error == 0 && bp->b_resid != 0)
401 zio->io_error = SET_ERROR(EIO);
404 zio_delay_interrupt(zio);
408 vdev_disk_ioctl_free(zio_t *zio)
410 kmem_free(zio->io_vsd, sizeof (struct dk_callback));
421 zio_t *zio = zio_arg local
    [all...]
zio_inject.c 167 zio_handle_fault_injection(zio_t *zio, int error)
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)
217 vdev_t *vd = zio->io_vd
    [all...]
zio_checksum.c 31 #include <sys/zio.h>
261 zio_checksum_compute(zio_t *zio, enum zio_checksum checksum,
264 blkptr_t *bp = zio->io_bp;
265 uint64_t offset = zio->io_offset;
268 spa_t *spa = zio->io_spa;
385 zio_checksum_error(zio_t *zio, zio_bad_cksum_t *info)
387 blkptr_t *bp = zio->io_bp;
388 uint_t checksum = (bp == NULL ? zio->io_prop.zp_checksum :
391 uint64_t size = (bp == NULL ? zio->io_size :
393 uint64_t offset = zio->io_offset
    [all...]
trim_map.c 33 * Calculate the zio end, upgrading based on ashift which would be
335 trim_map_write_start(zio_t *zio)
337 vdev_t *vd = zio->io_vd;
346 start = zio->io_offset;
347 end = TRIM_ZIO_END(zio->io_vd, start, zio->io_size);
358 list_insert_tail(&tm->tm_pending_writes, zio);
373 avl_add(&tm->tm_inflight_writes, zio);
381 trim_map_write_done(zio_t *zio)
383 vdev_t *vd = zio->io_vd
491 zio_t *zio; local
556 zio_t *zio; local
    [all...]
vdev_geom.c 37 #include <sys/zio.h>
173 * SPA ZIO configuration lock as a writer, but doing
921 zio_t *zio; local
923 zio = bp->bio_caller1;
924 vd = zio->io_vd;
925 zio->io_error = bp->bio_error;
926 if (zio->io_error == 0 && bp->bio_resid != 0)
927 zio->io_error = SET_ERROR(EIO);
929 switch(zio->io_error) {
954 spa_async_request(zio->io_spa
    [all...]
vdev_raidz.c 37 #include <sys/zio.h>
135 uint8_t rm_freed; /* map no longer has referencing ZIO */
293 vdev_raidz_map_free_vsd(zio_t *zio)
295 raidz_map_t *rm = zio->io_vsd;
335 * data never changes for a given logical ZIO)
396 vdev_raidz_cksum_report(zio_t *zio, zio_cksum_report_t *zcr, void *arg)
401 raidz_map_t *rm = zio->io_vsd;
418 * to copy the data aside; there's no guarantee that our zio's buffer
458 /* The zio's size in units of the vdev's minimum sector size. */
1706 vdev_raidz_child_done(zio_t *zio)
    [all...]
arc.c 247 #include <sys/zio.h>
1044 * compression, and is set in the arc's zio completion handlers.
1763 arc_cksum_is_equal(arc_buf_hdr_t *hdr, zio_t *zio)
1765 enum zio_compress compress = BP_GET_COMPRESS(zio->io_bp);
1768 ASSERT(!BP_IS_EMBEDDED(zio->io_bp));
1769 VERIFY3U(BP_GET_PSIZE(zio->io_bp), ==, HDR_GET_PSIZE(hdr));
1789 csize = zio_compress_data(compress, zio->io_data, cbuf, lsize);
1807 zio_push_transform(zio, cbuf, csize, HDR_GET_PSIZE(hdr), NULL);
1814 * individual gang member. The zio pipeline, however, must be able to
1823 valid_cksum = (zio_checksum_error_impl(zio->io_spa, zio->io_bp
5696 zio_t *zio; local
    [all...]
dbuf.c 41 #include <sys/zio.h>
902 dbuf_read_done(zio_t *zio, arc_buf_t *buf, void *vdb)
922 } else if (zio == NULL || zio->io_error == 0) {
936 dbuf_read_impl(dmu_buf_impl_t *db, zio_t *zio, uint32_t flags)
1021 (void) arc_read(zio, db->db_objset->os_spa, db->db_blkptr,
1028 dbuf_read(dmu_buf_impl_t *db, zio_t *zio, uint32_t flags)
1031 boolean_t havepzio = (zio != NULL);
1064 if (zio == NULL)
1065 zio = zio_root(spa, NULL, NULL, ZIO_FLAG_CANFAIL)
2985 zio_t *zio; local
3485 zio_t *zio; local
    [all...]
edonr_zfs.c 26 #include <sys/zio.h>
sha256.c 29 #include <sys/zio.h>
  /src/external/cddl/osnet/dist/uts/common/fs/zfs/sys/
blkptr.h 24 #include <sys/zio.h>
trim_map.h 40 extern boolean_t trim_map_write_start(zio_t *zio);
41 extern void trim_map_write_done(zio_t *zio);
uberblock.h 34 #include <sys/zio.h>
zio.h 214 #define ZIO_DDT_CHILD_FLAGS(zio) \
215 (((zio)->io_flags & ZIO_FLAG_DDT_INHERIT) | \
218 #define ZIO_GANG_CHILD_FLAGS(zio) \
219 (((zio)->io_flags & ZIO_FLAG_GANG_INHERIT) | \
222 #define ZIO_VDEV_CHILD_FLAGS(zio) \
223 (((zio)->io_flags & ZIO_FLAG_VDEV_INHERIT) | \
248 typedef void zio_done_func_t(zio_t *zio);
341 typedef void zio_vsd_cksum_report_f(zio_t *zio, zio_cksum_report_t *zcr,
356 typedef zio_t *zio_gang_issue_func_t(zio_t *zio, blkptr_t *bp,
359 typedef void zio_transform_func_t(zio_t *zio, void *data, uint64_t size)
426 struct zio { struct
    [all...]
zio_checksum.h 30 #include <sys/zio.h>
48 /* ZIO embedded checksum */
106 extern void zio_checksum_compute(zio_t *zio, enum zio_checksum checksum,
110 extern int zio_checksum_error(zio_t *zio, zio_bad_cksum_t *out);
vdev.h 31 #include <sys/zio.h>
94 extern void vdev_stat_update(zio_t *zio, uint64_t psize);
116 extern boolean_t vdev_accessible(vdev_t *vd, zio_t *zio);
120 extern boolean_t vdev_cache_read(zio_t *zio);
121 extern void vdev_cache_write(zio_t *zio);
126 extern zio_t *vdev_queue_io(zio_t *zio);
127 extern void vdev_queue_io_done(zio_t *zio);
130 extern void vdev_queue_register_lastoffset(vdev_t *vd, zio_t *zio);
dmu_traverse.h 31 #include <sys/zio.h>

Completed in 29 milliseconds

1 2 3 4