HomeFreeBSD

Add the '-a' option to 'zpool export'

Description

Add the '-a' option to 'zpool export'

Support exporting all imported pools in one go, using 'zpool export -a'.

This is accomplished by moving the export parts from zpool_do_export()
in to the new function zpool_export_one(). The for_each_pool() function
is used to enumerate the list of pools to be exported. Passing an argc
of 0 implies the function should be called on all pools.

Signed-off-by: Turbo Fredriksson <turbo@bayour.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes: #3203

Details

Provenance
Turbo Fredriksson <turbo@bayour.com>Authored on Mar 20 2015, 10:29 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on May 4 2015, 5:17 PM
Parents
rG0c60cc326bdb: Illumos 4951 - ZFS administrative commands (fix)
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG859735c0954e: Add the '-a' option to 'zpool export' (authored by Turbo Fredriksson <turbo@bayour.com>).May 4 2015, 5:17 PM