Date: Fri, 30 Jan 2015 01:04:18 +0000 (UTC) From: Steven Hartland <smh@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: r277905 - stable/10/cddl/contrib/opensolaris/lib/libzfs/common Message-ID: <201501300104.t0U14I0n054285@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: smh Date: Fri Jan 30 01:04:17 2015 New Revision: 277905 URL: https://svnweb.freebsd.org/changeset/base/277905 Log: MFC r276446: Use the correct state name for unavailable pools in zpool list Sponsored by: Multiplay Modified: stable/10/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_pool.c Directory Properties: stable/10/ (props changed) Modified: stable/10/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_pool.c ============================================================================== --- stable/10/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_pool.c Thu Jan 29 22:49:30 2015 (r277904) +++ stable/10/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_pool.c Fri Jan 30 01:04:17 2015 (r277905) @@ -256,7 +256,8 @@ zpool_get_prop(zpool_handle_t *zhp, zpoo break; case ZPOOL_PROP_HEALTH: - (void) strlcpy(buf, "FAULTED", len); + (void) strlcpy(buf, + zpool_pool_state_to_name(POOL_STATE_UNAVAIL), len); break; case ZPOOL_PROP_GUID:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201501300104.t0U14I0n054285>