Lines Matching defs:ub
32 uberblock_verify(uberblock_t *ub)
34 if (ub->ub_magic == BSWAP_64((uint64_t)UBERBLOCK_MAGIC))
35 byteswap_uint64_array(ub, sizeof (uberblock_t));
37 if (ub->ub_magic != UBERBLOCK_MAGIC)
48 uberblock_update(uberblock_t *ub, vdev_t *rvd, uint64_t txg, uint64_t mmp_delay)
50 ASSERT(ub->ub_txg < txg);
56 ub->ub_magic = UBERBLOCK_MAGIC;
57 ub->ub_txg = txg;
58 ub->ub_guid_sum = rvd->vdev_guid_sum;
59 ub->ub_timestamp = gethrestime_sec();
60 ub->ub_software_version = SPA_VERSION;
61 ub->ub_mmp_magic = MMP_MAGIC;
63 ub->ub_mmp_delay = mmp_delay;
64 ub->ub_mmp_config = MMP_SEQ_SET(0) |
68 ub->ub_mmp_delay = 0;
69 ub->ub_mmp_config = 0;
71 ub->ub_checkpoint_txg = 0;
73 return (ub->ub_rootbp.blk_birth == txg);