* Export a storage pool. */
| 6387 | * Export a storage pool. |
| 6388 | */ |
| 6389 | int |
| 6390 | spa_export(const char *pool, nvlist_t **oldconfig, boolean_t force, |
| 6391 | boolean_t hardforce) |
| 6392 | { |
| 6393 | return (spa_export_common(pool, POOL_STATE_EXPORTED, oldconfig, |
| 6394 | force, hardforce)); |
| 6395 | } |
| 6396 | |
| 6397 | /* |
| 6398 | * Similar to spa_export(), this unloads the spa_t without actually removing it |