Skip to content

Commit

Permalink
2762 zpool command should have better support for feature flags
Browse files Browse the repository at this point in the history
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: George Wilson <george.wilson@delphix.com>
Approved by: Eric Schrock <Eric.Schrock@delphix.com>
  • Loading branch information
Christopher Siden committed Jul 19, 2012
1 parent 21b2731 commit 5722177
Show file tree
Hide file tree
Showing 11 changed files with 392 additions and 119 deletions.
6 changes: 3 additions & 3 deletions usr/src/cmd/zhack/zhack.c
Expand Up @@ -280,7 +280,7 @@ feature_enable_sync(void *arg1, void *arg2, dmu_tx_t *tx)

spa_feature_enable(spa, feature, tx);
spa_history_log_internal(spa, "zhack enable feature", tx,
"name=%s can_readonly=%u",
"guid=%s can_readonly=%u",
feature->fi_guid, feature->fi_can_readonly);
}

Expand Down Expand Up @@ -360,7 +360,7 @@ feature_incr_sync(void *arg1, void *arg2, dmu_tx_t *tx)

spa_feature_incr(spa, feature, tx);
spa_history_log_internal(spa, "zhack feature incr", tx,
"name=%s", feature->fi_guid);
"guid=%s", feature->fi_guid);
}

static void
Expand All @@ -371,7 +371,7 @@ feature_decr_sync(void *arg1, void *arg2, dmu_tx_t *tx)

spa_feature_decr(spa, feature, tx);
spa_history_log_internal(spa, "zhack feature decr", tx,
"name=%s", feature->fi_guid);
"guid=%s", feature->fi_guid);
}

static void
Expand Down

0 comments on commit 5722177

Please sign in to comment.