Print this page
4171 clean up spa_feature_*() interfaces
4172 implement extensible_dataset feature for use by other zpool features
Reviewed by: Max Grossman <max.grossman@delphix.com>
Reviewed by: Christopher Siden <christopher.siden@delphix.com>
Reviewed by: George Wilson <george.wilson@delphix.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/zfs/dmu_traverse.c
          +++ new/usr/src/uts/common/fs/zfs/dmu_traverse.c
↓ open down ↓ 597 lines elided ↑ open up ↑
 598  598                  dmu_object_info_t doi;
 599  599  
 600  600                  err = dmu_object_info(mos, obj, &doi);
 601  601                  if (err != 0) {
 602  602                          if (!hard)
 603  603                                  return (err);
 604  604                          lasterr = err;
 605  605                          continue;
 606  606                  }
 607  607  
 608      -                if (doi.doi_type == DMU_OT_DSL_DATASET) {
      608 +                if (doi.doi_bonus_type == DMU_OT_DSL_DATASET) {
 609  609                          dsl_dataset_t *ds;
 610  610                          uint64_t txg = txg_start;
 611  611  
 612  612                          dsl_pool_config_enter(dp, FTAG);
 613  613                          err = dsl_dataset_hold_obj(dp, obj, FTAG, &ds);
 614  614                          dsl_pool_config_exit(dp, FTAG);
 615  615                          if (err != 0) {
 616  616                                  if (!hard)
 617  617                                          return (err);
 618  618                                  lasterr = err;
↓ open down ↓ 17 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX