MCPcopy Create free account
hub / github.com/F-Stack/f-stack / zio_read_phys

Function zio_read_phys

freebsd/contrib/openzfs/module/zfs/zio.c:1358–1377  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1356}
1357
1358zio_t *
1359zio_read_phys(zio_t *pio, vdev_t *vd, uint64_t offset, uint64_t size,
1360 abd_t *data, int checksum, zio_done_func_t *done, void *private,
1361 zio_priority_t priority, enum zio_flag flags, boolean_t labels)
1362{
1363 zio_t *zio;
1364
1365 ASSERT(vd->vdev_children == 0);
1366 ASSERT(!labels || offset + size <= VDEV_LABEL_START_SIZE ||
1367 offset >= vd->vdev_psize - VDEV_LABEL_END_SIZE);
1368 ASSERT3U(offset + size, <=, vd->vdev_psize);
1369
1370 zio = zio_create(pio, vd->vdev_spa, 0, NULL, data, size, size, done,
1371 private, ZIO_TYPE_READ, priority, flags | ZIO_FLAG_PHYSICAL, vd,
1372 offset, NULL, ZIO_STAGE_OPEN, ZIO_READ_PHYS_PIPELINE);
1373
1374 zio->io_prop.zp_checksum = checksum;
1375
1376 return (zio);
1377}
1378
1379zio_t *
1380zio_write_phys(zio_t *pio, vdev_t *vd, uint64_t offset, uint64_t size,

Callers 5

vdev_probeFunction · 0.85
arc_readFunction · 0.85
l2arc_dev_hdr_readFunction · 0.85
l2arc_log_blk_fetchFunction · 0.85
vdev_label_readFunction · 0.85

Calls 1

zio_createFunction · 0.85

Tested by

no test coverage detected