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

Function vdev_label_read

freebsd/contrib/openzfs/module/zfs/vdev_label.c:186–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184}
185
186static void
187vdev_label_read(zio_t *zio, vdev_t *vd, int l, abd_t *buf, uint64_t offset,
188 uint64_t size, zio_done_func_t *done, void *private, int flags)
189{
190 ASSERT(
191 spa_config_held(zio->io_spa, SCL_STATE, RW_READER) == SCL_STATE ||
192 spa_config_held(zio->io_spa, SCL_STATE, RW_WRITER) == SCL_STATE);
193 ASSERT(flags & ZIO_FLAG_CONFIG_WRITER);
194
195 zio_nowait(zio_read_phys(zio, vd,
196 vdev_label_offset(vd->vdev_psize, l, offset),
197 size, buf, ZIO_CHECKSUM_LABEL, done, private,
198 ZIO_PRIORITY_SYNC_READ, flags, B_TRUE));
199}
200
201void
202vdev_label_write(zio_t *zio, vdev_t *vd, int l, abd_t *buf, uint64_t offset,

Callers 4

vdev_label_read_configFunction · 0.85
vdev_uberblock_load_implFunction · 0.85
vdev_copy_uberblocksFunction · 0.85

Calls 4

spa_config_heldFunction · 0.85
zio_nowaitFunction · 0.85
zio_read_physFunction · 0.85
vdev_label_offsetFunction · 0.85

Tested by

no test coverage detected