diff options
author | Turbo Fredriksson <[email protected]> | 2015-03-20 23:29:14 +0100 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2015-05-04 10:17:08 -0700 |
commit | 859735c0954e89dd329729c6959df7cbaca1fdcc (patch) | |
tree | 4d28d1be45ec1e0dc38d420c9b411d28a0d3bec1 /man/man8 | |
parent | 0c60cc326bdb44f7eea61e62c6183822d0bd9cf0 (diff) |
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 <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes: #3203
Diffstat (limited to 'man/man8')
-rw-r--r-- | man/man8/zpool.8 | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/man/man8/zpool.8 b/man/man8/zpool.8 index 00c19305a..74d7461ce 100644 --- a/man/man8/zpool.8 +++ b/man/man8/zpool.8 @@ -57,7 +57,7 @@ zpool \- configures ZFS storage pools .LP .nf -\fBzpool export\fR [\fB-f\fR] \fIpool\fR ... +\fBzpool export\fR [\fB-a\fR] [\fB-f\fR] \fIpool\fR ... .fi .LP @@ -1059,11 +1059,13 @@ Forces any active datasets contained within the pool to be unmounted. Detaches \fIdevice\fR from a mirror. The operation is refused if there are no other valid replicas of the data. If \fIdevice\fR may be re-added to the pool later on then consider the "\fBzpool offline\fR" command instead. .RE +.RE + .sp .ne 2 .mk .na -\fB\fBzpool export\fR [\fB-f\fR] \fIpool\fR ...\fR +\fB\fBzpool export\fR [\fB-a\fR] [\fB-f\fR] \fIpool\fR ...\fR .ad .sp .6 .RS 4n @@ -1076,10 +1078,21 @@ For pools to be portable, you must give the \fBzpool\fR command whole disks, not .ne 2 .mk .na +\fB\fB-a\fR\fR +.ad +.RS 6n +.rt +Exports all pools imported on the system. +.RE + +.sp +.ne 2 +.mk +.na \fB\fB-f\fR\fR .ad .RS 6n -.rt +.rt Forcefully unmount all datasets, using the "\fBunmount -f\fR" command. .sp This command will forcefully export the pool even if it has a shared spare that is currently being used. This may lead to potential data corruption. |