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:
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-stable-10
To unsubscribe, send any mail to "[email protected]"