Print this page
patch tsoome-feedback

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/zfs/spa_config.c
          +++ new/usr/src/uts/common/fs/zfs/spa_config.c
↓ open down ↓ 336 lines elided ↑ open up ↑
 337  337          *generation = spa_config_generation;
 338  338          mutex_exit(&spa_namespace_lock);
 339  339  
 340  340          return (pools);
 341  341  }
 342  342  
 343  343  void
 344  344  spa_config_set(spa_t *spa, nvlist_t *config)
 345  345  {
 346  346          mutex_enter(&spa->spa_props_lock);
 347      -        if (spa->spa_config != NULL)
 348      -                nvlist_free(spa->spa_config);
      347 +        nvlist_free(spa->spa_config);
 349  348          spa->spa_config = config;
 350  349          mutex_exit(&spa->spa_props_lock);
 351  350  }
 352  351  
 353  352  /*
 354  353   * Generate the pool's configuration based on the current in-core state.
 355  354   *
 356  355   * We infer whether to generate a complete config or just one top-level config
 357  356   * based on whether vd is the root vdev.
 358  357   */
↓ open down ↓ 186 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX