Mercurial > illumos > illumos-gate
diff usr/src/uts/common/fs/zfs/spa.c @ 13765:9410cf539b11
backout 3006: causes 3046 (panics after mounting root)
author | Richard Lowe <richlowe@richlowe.net> |
---|---|
date | Wed, 01 Aug 2012 16:40:39 -0400 |
parents | 38b4aca480b3 |
children | b1e53580146d |
line wrap: on
line diff
--- a/usr/src/uts/common/fs/zfs/spa.c Tue Jul 31 06:38:31 2012 -0700 +++ b/usr/src/uts/common/fs/zfs/spa.c Wed Aug 01 16:40:39 2012 -0400 @@ -2961,7 +2961,7 @@ zap_cursor_advance(&zc)) { ASSERT(za.za_integer_length == sizeof (uint64_t) && za.za_num_integers == 1); - VERIFY0(nvlist_add_uint64(features, za.za_name, + VERIFY3U(0, ==, nvlist_add_uint64(features, za.za_name, za.za_first_integer)); } zap_cursor_fini(&zc); @@ -2974,7 +2974,7 @@ zap_cursor_advance(&zc)) { ASSERT(za.za_integer_length == sizeof (uint64_t) && za.za_num_integers == 1); - VERIFY0(nvlist_add_uint64(features, za.za_name, + VERIFY3U(0, ==, nvlist_add_uint64(features, za.za_name, za.za_first_integer)); } zap_cursor_fini(&zc); @@ -3415,7 +3415,7 @@ sizeof (uint64_t), 1, &obj, tx) != 0) { cmn_err(CE_PANIC, "failed to add bpobj"); } - VERIFY0(bpobj_open(&spa->spa_deferred_bpobj, + VERIFY3U(0, ==, bpobj_open(&spa->spa_deferred_bpobj, spa->spa_meta_objset, obj)); /* @@ -4990,7 +4990,7 @@ * The evacuation succeeded. Remove any remaining MOS metadata * associated with this vdev, and wait for these changes to sync. */ - ASSERT0(vd->vdev_stat.vs_alloc); + ASSERT3U(vd->vdev_stat.vs_alloc, ==, 0); txg = spa_vdev_config_enter(spa); vd->vdev_removing = B_TRUE; vdev_dirty(vd, 0, NULL, txg); @@ -5737,7 +5737,7 @@ ASSERT(zpool_prop_feature(nvpair_name(elem))); fname = strchr(nvpair_name(elem), '@') + 1; - VERIFY0(zfeature_lookup_name(fname, &feature)); + VERIFY3U(0, ==, zfeature_lookup_name(fname, &feature)); spa_feature_enable(spa, feature, tx); spa_history_log_internal(spa, "set", tx, @@ -5982,7 +5982,7 @@ zio_t *zio = zio_root(spa, NULL, NULL, 0); VERIFY3U(bpobj_iterate(defer_bpo, spa_free_sync_cb, zio, tx), ==, 0); - VERIFY0(zio_wait(zio)); + VERIFY3U(zio_wait(zio), ==, 0); } /*