diff options
author | Brian Behlendorf <[email protected]> | 2016-05-17 11:44:50 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2016-05-17 11:52:07 -0700 |
commit | ada8258141f16da6647fd65aa8721d7ce2c02769 (patch) | |
tree | ae580f29d2d9c5dcc5a1fc6a091b5a07a999d5fe /module | |
parent | 2587cd8f93ec2ec774e49aafbf536b918f77cff2 (diff) |
Revert "zhack: Add 'feature disable' command"
This reverts commit 83025286175d1ee1c29b842531070f3250a172ba and
ebecfcd6991bebe71511cb8fd409112798f203b2 which broke the build.
While these patches do apply cleanly and passed previous test
runs they need to be updated to account for the changes made in
commit 241b5415748859a3c272fc8f570f2368e93adde9.
Signed-off-by: Brian Behlendorf <[email protected]>
Issue #3878
Diffstat (limited to 'module')
-rw-r--r-- | module/zfs/zfeature.c | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/module/zfs/zfeature.c b/module/zfs/zfeature.c index c83b14568..bda954829 100644 --- a/module/zfs/zfeature.c +++ b/module/zfs/zfeature.c @@ -380,43 +380,6 @@ feature_enable_sync(spa_t *spa, zfeature_info_t *feature, dmu_tx_t *tx) } } -/* - * This function is non-static for zhack; it should otherwise not be used - * outside this file. - */ -void -feature_disable_sync(spa_t *spa, zfeature_info_t *feature, dmu_tx_t *tx) -{ - uint64_t descobj = spa->spa_feat_desc_obj; - uint64_t zapobj = feature->fi_can_readonly ? - spa->spa_feat_for_write_obj : spa->spa_feat_for_read_obj; - - ASSERT(0 != zapobj); - ASSERT(zfeature_is_valid_guid(feature->fi_guid)); - ASSERT3U(spa_version(spa), >=, SPA_VERSION_FEATURES); - - if (zap_contains(spa->spa_meta_objset, descobj, feature->fi_guid) == 0) - VERIFY0(zap_remove(spa->spa_meta_objset, descobj, - feature->fi_guid, tx)); - - if (zap_contains(spa->spa_meta_objset, zapobj, feature->fi_guid) == 0) - VERIFY0(zap_remove(spa->spa_meta_objset, zapobj, - feature->fi_guid, tx)); - - spa_deactivate_mos_feature(spa, feature->fi_guid); - - if (spa_feature_is_enabled(spa, SPA_FEATURE_ENABLED_TXG)) { - uint64_t txgobj = spa->spa_feat_enabled_txg_obj; - - if (txgobj && (zap_contains(spa->spa_meta_objset, - txgobj, feature->fi_guid) == 0)) { - spa_feature_decr(spa, SPA_FEATURE_ENABLED_TXG, tx); - VERIFY0(zap_remove(spa->spa_meta_objset, txgobj, - feature->fi_guid, tx)); - } - } -} - static void feature_do_action(spa_t *spa, spa_feature_t fid, feature_action_t action, dmu_tx_t *tx) |