Mercurial > illumos > illumos-gate
comparison usr/src/uts/common/fs/zfs/spa.c @ 10950:588ee15c1f19
6897692 ZFS import leaks an nvlist
author | Tim Haley <Tim.Haley@Sun.COM> |
---|---|
date | Wed, 04 Nov 2009 07:57:07 -0700 |
parents | e2081f502306 |
children | 0c81acaaf614 |
comparison
equal
deleted
inserted
replaced
10949:515fcb538da8 | 10950:588ee15c1f19 |
---|---|
2771 bvd->vdev_parent->vdev_child[1]->vdev_path); | 2771 bvd->vdev_parent->vdev_child[1]->vdev_path); |
2772 error = EINVAL; | 2772 error = EINVAL; |
2773 goto out; | 2773 goto out; |
2774 } | 2774 } |
2775 | 2775 |
2776 VERIFY(nvlist_dup(config, &spa->spa_config, 0) == 0); | |
2777 error = 0; | 2776 error = 0; |
2778 spa_history_log_version(spa, LOG_POOL_IMPORT); | 2777 spa_history_log_version(spa, LOG_POOL_IMPORT); |
2779 out: | 2778 out: |
2780 spa_config_enter(spa, SCL_ALL, FTAG, RW_WRITER); | 2779 spa_config_enter(spa, SCL_ALL, FTAG, RW_WRITER); |
2781 vdev_free(rvd); | 2780 vdev_free(rvd); |