MCPcopy Create free account
hub / github.com/F-Stack/f-stack / spa_export

Function spa_export

freebsd/contrib/openzfs/module/zfs/spa.c:6389–6395  ·  view source on GitHub ↗

* Export a storage pool. */

Source from the content-addressed store, hash-verified

6387 * Export a storage pool.
6388 */
6389int
6390spa_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

Callers 4

zfs_ioc_pool_exportFunction · 0.85
fatalFunction · 0.85
mainFunction · 0.85
ztest_spa_import_exportFunction · 0.85

Calls 1

spa_export_commonFunction · 0.85

Tested by 1

ztest_spa_import_exportFunction · 0.68