Lines Matching defs:ub
640 uberblock_t *ub;
791 ub = zio_buf_alloc(VDEV_UBERBLOCK_RING);
792 bzero(ub, VDEV_UBERBLOCK_RING);
793 *ub = spa->spa_uberblock;
794 ub->ub_txg = 0;
821 vdev_label_write(zio, vd, l, ub,
835 zio_buf_free(ub, VDEV_UBERBLOCK_RING);
900 uberblock_t *ub = zio->io_data;
905 if (zio->io_error == 0 && uberblock_verify(ub) == 0) {
907 if (ub->ub_txg <= spa->spa_load_max_txg &&
908 vdev_uberblock_compare(ub, cbp->ubl_ubbest) > 0) {
915 *cbp->ubl_ubbest = *ub;
951 vdev_uberblock_load(vdev_t *rvd, uberblock_t *ub, nvlist_t **config)
959 ASSERT(ub);
962 bzero(ub, sizeof (uberblock_t));
965 cb.ubl_ubbest = ub;
980 *config = vdev_label_read_config(cb.ubl_vd, ub->ub_txg);
1001 vdev_uberblock_sync(zio_t *zio, uberblock_t *ub, vdev_t *vd, int flags)
1007 vdev_uberblock_sync(zio, ub, vd->vdev_child[c], flags);
1015 n = ub->ub_txg & (VDEV_UBERBLOCK_COUNT(vd) - 1);
1019 *ubbuf = *ub;
1032 vdev_uberblock_sync_list(vdev_t **svd, int svdcount, uberblock_t *ub, int flags)
1041 vdev_uberblock_sync(zio, ub, svd[v], flags);
1197 uberblock_t *ub = &spa->spa_uberblock;
1217 ASSERT(ub->ub_txg <= txg);
1225 if (ub->ub_txg < txg &&
1226 uberblock_update(ub, spa->spa_root_vdev, txg) == B_FALSE &&
1276 if ((error = vdev_uberblock_sync_list(svd, svdcount, ub, flags)) != 0)