Lines Matching defs:txg

123  * 	txg		Transaction group in which this label was written
427 * which don't have a txg value stored on their label (i.e. spares/cache)
428 * or have not been completely initialized (txg = 0) just return
431 * 'txg' value.
434 vdev_label_read_config(vdev_t *vd, uint64_t txg)
468 * Auxiliary vdevs won't have txg values in their
479 } else if (label_txg <= txg && label_txg > best_txg) {
511 uint64_t state, pool_guid, device_guid, txg, spare_pool;
541 &txg) != 0)) {
567 txg == 0 && vdtxg == crtxg)
730 * We mark it as being from txg 0 to indicate that it's not
732 * be written again with a meaningful txg by spa_sync().
765 uint64_t txg = 0ULL;
768 txg = spa->spa_uberblock.ub_txg;
769 label = spa_config_generate(spa, vd, txg, B_FALSE);
905 * Consider the following situation: txg is safely synced to disk. We've
906 * written the first uberblock for txg + 1, and then we lose power. When we
907 * come back up, we fail to see the uberblock for txg + 1 because, say,
908 * it was on a mirrored device and the replica to which we wrote txg + 1
909 * is now offline. If we then make some changes and sync txg + 1, and then
911 * conflicting uberblocks on disk with the same txg. The solution is simple:
912 * among uberblocks with equal txg, choose the one with the latest timestamp.
988 * vdev, keeping track of the uberblock with the highest txg in each array.
1016 * that has a configuration which was written in a future txg.
1018 * matches the txg for our uberblock.
1140 vdev_label_sync(zio_t *zio, vdev_t *vd, int l, uint64_t txg, int flags)
1148 vdev_label_sync(zio, vd->vdev_child[c], l, txg, flags);
1159 label = spa_config_generate(vd->vdev_spa, vd, txg, B_FALSE);
1182 vdev_label_sync_list(spa_t *spa, int l, uint64_t txg, int flags)
1204 vdev_label_sync(vio, vd, l, txg, flags);
1235 vdev_config_sync(vdev_t **svd, int svdcount, uint64_t txg)
1258 ASSERT(ub->ub_txg <= txg);
1266 if (ub->ub_txg < txg &&
1267 uberblock_update(ub, spa->spa_root_vdev, txg) == B_FALSE &&
1271 if (txg > spa_freeze_txg(spa))
1274 ASSERT(txg <= spa->spa_final_txg);
1279 * written in this txg will be committed to stable storage
1284 for (vd = txg_list_head(&spa->spa_vdev_txg_list, TXG_CLEAN(txg)); vd;
1285 vd = txg_list_next(&spa->spa_vdev_txg_list, vd, TXG_CLEAN(txg)))
1299 if ((error = vdev_label_sync_list(spa, 0, txg, flags)) != 0)
1330 if ((error = vdev_label_sync_list(spa, 1, txg, flags)) != 0)