Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Aug 2014 19:14:50 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r269736 - stable/10/cddl/contrib/opensolaris/cmd/zpool
Message-ID:  <53e521aa.2253.d965b16@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: delphij
Date: Fri Aug  8 19:14:49 2014
New Revision: 269736
URL: http://svnweb.freebsd.org/changeset/base/269736

Log:
  MFC r269100:
  
  Diff reduction against Illumos.

Modified:
  stable/10/cddl/contrib/opensolaris/cmd/zpool/zpool.8
  stable/10/cddl/contrib/opensolaris/cmd/zpool/zpool_main.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/cddl/contrib/opensolaris/cmd/zpool/zpool.8
==============================================================================
--- stable/10/cddl/contrib/opensolaris/cmd/zpool/zpool.8	Fri Aug  8 19:11:23 2014	(r269735)
+++ stable/10/cddl/contrib/opensolaris/cmd/zpool/zpool.8	Fri Aug  8 19:14:49 2014	(r269736)
@@ -26,7 +26,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd July 14, 2014
+.Dd July 25, 2014
 .Dt ZPOOL 8
 .Os
 .Sh NAME
@@ -556,7 +556,12 @@ will decrease while
 .Sy free
 increases.
 .It Sy expandsize
-This property has currently no value on FreeBSD.
+Amount of uninitialized space within the pool or device that can be used to
+increase the total capacity of the pool.
+Uninitialized space consists of
+any space on an EFI labeled vdev which has not been brought online
+.Pq i.e. zpool online -e .
+This space occurs when a LUN is dynamically expanded.
 .It Sy guid
 A unique identifier for the pool.
 .It Sy health
@@ -1391,7 +1396,10 @@ instead of arbitrary space.
 .It Fl p
 Display numbers in parsable (exact) values.
 .It Fl v
-Show more detailed information.
+Verbose statistics. Reports usage statistics for individual
+.Em vdevs
+within
+the pool, in addition to the pool-wide statistics.
 .It Fl o Ar property Ns Op , Ns Ar ...
 Comma-separated list of properties to display. See the
 .Qq Sx Properties
@@ -1400,6 +1408,7 @@ section for a list of valid properties. 
 .Sy size ,
 .Sy used ,
 .Sy available ,
+.Sy expandsize ,
 .Sy capacity  ,
 .Sy health ,
 .Sy altroot .
@@ -1785,9 +1794,9 @@ is immediately available to any datasets
 The following command lists all available pools on the system.
 .Bd -literal -offset 2n
 .Li # Ic zpool list
-NAME   SIZE  ALLOC   FREE    CAP  DEDUP  HEALTH  ALTROOT
-pool  2.70T   473G  2.24T    17%  1.00x  ONLINE  -
-test  1.98G  89.5K  1.98G     0%  1.00x  ONLINE  -
+NAME   SIZE  ALLOC   FREE  EXPANDSZ    CAP  DEDUP  HEALTH  ALTROOT
+pool  2.70T   473G  2.24T         -    17%  1.00x  ONLINE  -
+test  1.98G  89.5K  1.98G         -     0%  1.00x  ONLINE  -
 .Ed
 .It Sy Example 7 No Listing All Properties for a Pool
 .Pp

Modified: stable/10/cddl/contrib/opensolaris/cmd/zpool/zpool_main.c
==============================================================================
--- stable/10/cddl/contrib/opensolaris/cmd/zpool/zpool_main.c	Fri Aug  8 19:11:23 2014	(r269735)
+++ stable/10/cddl/contrib/opensolaris/cmd/zpool/zpool_main.c	Fri Aug  8 19:14:49 2014	(r269736)
@@ -3031,7 +3031,7 @@ zpool_do_list(int argc, char **argv)
 	int ret;
 	list_cbdata_t cb = { 0 };
 	static char default_props[] =
-	    "name,size,allocated,free,capacity,dedupratio,"
+	    "name,size,allocated,free,expandsize,capacity,dedupratio,"
 	    "health,altroot";
 	char *props = default_props;
 	unsigned long interval = 0, count = 0;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53e521aa.2253.d965b16>