• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/

Lines Matching refs:txg

65 #include <sys/txg.h>
2091 * current txg so that the "stubby" block can be removed
2635 uint64_t txg = ub->ub_txg;
2653 * during the earlier tryimport. If the txg recorded there is 0 then
2681 if (txg != ub->ub_txg || timestamp != ub->ub_timestamp ||
2684 "txg %llu ub_txg %llu "
2687 txg, ub->ub_txg, timestamp, ub->ub_timestamp,
3048 spa_load_note(spa, "using uberblock with txg=%llu",
3845 * This must all happen in a single txg.
4040 * We need to update the txg and timestamp of the checkpointed
4209 * Retrieve the checkpoint txg if the pool has a checkpoint.
4318 * In case of a checkpoint rewind, log the original txg
4323 NULL, "rewound state to txg=%llu",
4412 spa_load_note(spa, "spa_load_retry: rewind, max txg: %llu",
4419 * If spa_load() fails this function will try loading prior txg's. If
4421 * will be rewound to that txg. If 'state' is not SPA_LOAD_RECOVER this
5133 uint64_t txg = TXG_INITIAL;
5192 spa->spa_first_txg = txg;
5193 spa->spa_uberblock.ub_txg = txg - 1;
5227 (error = vdev_create(rvd, txg, B_FALSE)) == 0 &&
5228 (error = spa_validate_aux(spa, nvroot, txg,
5239 vdev_expand(vd, txg);
5284 spa->spa_dsl_pool = dp = dsl_pool_create(spa, zplprops, txg);
5295 tx = dmu_tx_create_assigned(dp, txg);
5381 txg_wait_synced(spa->spa_dsl_pool, txg);
5453 * device has a more recent txg.
5456 spa_alt_rootvdev(vdev_t *vd, vdev_t **avd, uint64_t *txg)
5459 spa_alt_rootvdev(vd->vdev_child[c], avd, txg);
5475 if (label_txg > *txg) {
5476 *txg = label_txg;
5501 uint64_t guid, txg;
5526 VERIFY(nvlist_lookup_uint64(config, ZPOOL_CONFIG_POOL_TXG, &txg) == 0);
5575 spa_alt_rootvdev(rvd, &avd, &txg);
5633 uint64_t txg;
5636 &txg) == 0);
5637 if (txg > best_txg) {
5638 best_txg = txg;
5730 uint64_t txg;
5743 VERIFY(nvlist_lookup_uint64(config, ZPOOL_CONFIG_POOL_TXG, &txg)
6030 * Rewind pool if a max txg was provided.
6288 uint64_t txg, id;
6297 txg = spa_vdev_enter(spa);
6301 return (spa_vdev_exit(spa, NULL, txg, error));
6314 return (spa_vdev_exit(spa, vd, txg, EINVAL));
6317 (error = vdev_create(vd, txg, B_FALSE)) != 0)
6318 return (spa_vdev_exit(spa, vd, txg, error));
6324 if ((error = spa_validate_aux(spa, nvroot, txg, VDEV_ALLOC_ADD)) != 0)
6325 return (spa_vdev_exit(spa, vd, txg, error));
6339 return (spa_vdev_exit(spa, vd, txg, EINVAL));
6343 return (spa_vdev_exit(spa, vd, txg, EINVAL));
6355 txg, EINVAL));
6407 (void) spa_vdev_exit(spa, vd, txg, 0);
6433 uint64_t txg, dtl_max_txg;
6443 txg = spa_vdev_enter(spa);
6451 return (spa_vdev_exit(spa, NULL, txg, error));
6455 return (spa_vdev_exit(spa, NULL, txg, EBUSY));
6458 return (spa_vdev_exit(spa, NULL, txg, ENODEV));
6461 return (spa_vdev_exit(spa, NULL, txg, ENOTSUP));
6467 return (spa_vdev_exit(spa, NULL, txg, EINVAL));
6470 return (spa_vdev_exit(spa, newrootvd, txg, EINVAL));
6475 return (spa_vdev_exit(spa, newrootvd, txg, EINVAL));
6477 if ((error = vdev_create(newrootvd, txg, replacing)) != 0)
6478 return (spa_vdev_exit(spa, newrootvd, txg, error));
6484 return (spa_vdev_exit(spa, newrootvd, txg, ENOTSUP));
6493 return (spa_vdev_exit(spa, newrootvd, txg, ENOTSUP));
6504 return (spa_vdev_exit(spa, newrootvd, txg, ENOTSUP));
6516 return (spa_vdev_exit(spa, newrootvd, txg, ENOTSUP));
6519 return (spa_vdev_exit(spa, newrootvd, txg, ENOTSUP));
6532 return (spa_vdev_exit(spa, newrootvd, txg, EOVERFLOW));
6539 return (spa_vdev_exit(spa, newrootvd, txg, EDOM));
6558 newvd->vdev_resilver_txg = txg;
6590 dtl_max_txg = txg + TXG_CONCURRENT_STATES;
6605 * Mark newvd's DTL dirty in this txg.
6607 vdev_dirty(tvd, VDD_DTL, newvd, txg);
6647 uint64_t txg;
6657 txg = spa_vdev_enter(spa);
6679 return (spa_vdev_exit(spa, NULL, txg, error));
6683 return (spa_vdev_exit(spa, NULL, txg, ENODEV));
6686 return (spa_vdev_exit(spa, NULL, txg, ENOTSUP));
6704 return (spa_vdev_exit(spa, NULL, txg, EBUSY));
6711 return (spa_vdev_exit(spa, NULL, txg, ENOTSUP));
6722 return (spa_vdev_exit(spa, NULL, txg, ENOTSUP));
6729 return (spa_vdev_exit(spa, NULL, txg, EBUSY));
6793 * reason, we must remove the spare now, in the same txg as the detach;
6837 vdev_expand(tvd, txg);
6843 * Mark vd's DTL as dirty in this txg. vdev_dtl_sync() will see that
6845 * But first make sure we're not on any *other* txg's DTL list, to
6852 vdev_dirty(tvd, VDD_DTL, vd, txg);
6859 error = spa_vdev_exit(spa, vd, txg, 0);
6987 uint64_t txg, *glist;
6998 txg = spa_vdev_enter(spa);
7004 return (spa_vdev_exit(spa, NULL, txg, error));
7009 (void) spa_vdev_config_exit(spa, NULL, txg, 0, FTAG);
7011 txg = spa_vdev_config_enter(spa);
7017 return (spa_vdev_exit(spa, NULL, txg, error));
7021 return (spa_vdev_exit(spa, NULL, txg, EEXIST));
7029 return (spa_vdev_exit(spa, NULL, txg, EINVAL));
7047 return (spa_vdev_exit(spa, NULL, txg, EINVAL));
7052 return (spa_vdev_exit(spa, NULL, txg, EINVAL));
7131 return (spa_vdev_exit(spa, NULL, txg, error));
7178 spa_vdev_config_exit(spa, NULL, txg, 0, FTAG);
7232 txg = spa_vdev_config_enter(newspa);
7234 (void) spa_vdev_config_exit(newspa, NULL, txg, 0, FTAG);
7242 txg = spa_vdev_config_enter(spa);
7263 (void) spa_vdev_exit(spa, NULL, txg, 0);
7286 txg = spa_vdev_config_enter(spa);
7301 (void) spa_vdev_exit(spa, NULL, txg, error);
8252 * reflect the new version this txg, so there must be no changes this
8253 * txg to anything that the upgrade code depends on after it executes.
8362 spa_sync(spa_t *spa, uint64_t txg)
8366 bplist_t *free_bpl = &spa->spa_free_bplist[txg & TXG_MASK];
8381 * before this txg syncs.
8383 (void) zio_wait(spa->spa_txg_zio[txg & TXG_MASK]);
8384 spa->spa_txg_zio[txg & TXG_MASK] = zio_root(spa, NULL, NULL,
8392 spa->spa_syncing_txg = txg;
8425 tx = dmu_tx_create_assigned(dp, txg);
8439 * If we are upgrading to SPA_VERSION_RAIDZ_DEFLATE this txg,
8463 * out this txg.
8528 spa_errlog_sync(spa, txg);
8529 dsl_pool_sync(dp, txg);
8543 ddt_sync(spa, txg);
8549 while ((vd = txg_list_remove(&spa->spa_vdev_txg_list, txg))
8551 vdev_sync(vd, txg);
8555 ASSERT3U(txg, >=,
8568 if (spa->spa_uberblock.ub_rootbp.blk_birth < txg &&
8569 !dmu_objset_is_dirty(mos, txg)) {
8577 txg));
8578 ASSERT(txg_list_empty(&dp->dp_dirty_dirs, txg));
8579 ASSERT(txg_list_empty(&dp->dp_sync_tasks, txg));
8581 txg));
8587 } while (dmu_objset_is_dirty(mos, txg));
8605 ASSERT0(spa->spa_vdev_removal->svr_bytes_done[txg & TXG_MASK]);
8645 error = vdev_config_sync(svd, svdcount, txg);
8648 rvd->vdev_children, txg);
8683 spa->spa_config_txg = txg;
8687 dsl_pool_sync_done(dp, txg);
8698 while ((vd = txg_list_remove(&spa->spa_vdev_txg_list, TXG_CLEAN(txg)))
8700 vdev_sync_done(vd, txg);
8708 ASSERT(txg_list_empty(&dp->dp_dirty_datasets, txg));
8709 ASSERT(txg_list_empty(&dp->dp_dirty_dirs, txg));
8710 ASSERT(txg_list_empty(&spa->spa_vdev_txg_list, txg));
8721 * that txg has been completed.