svn commit: r251416 - stable/9/cddl/contrib/opensolaris/lib/libzfs/common

Steven Hartland smh at FreeBSD.org
Wed Jun 5 11:46:44 UTC 2013


Author: smh
Date: Wed Jun  5 11:46:43 2013
New Revision: 251416
URL: http://svnweb.freebsd.org/changeset/base/251416

Log:
  MFC r245479:
  Report pools which have a removed l2cache disk under zpool status -x

Modified:
  stable/9/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_status.c
Directory Properties:
  stable/9/cddl/contrib/opensolaris/   (props changed)
  stable/9/cddl/contrib/opensolaris/lib/libzfs/   (props changed)

Modified: stable/9/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_status.c
==============================================================================
--- stable/9/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_status.c	Wed Jun  5 11:42:03 2013	(r251415)
+++ stable/9/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_status.c	Wed Jun  5 11:46:43 2013	(r251416)
@@ -150,6 +150,16 @@ find_vdev_problem(nvlist_t *vdev, int (*
 			return (B_TRUE);
 	}
 
+	/*
+	 * Check any L2 cache devs
+	 */
+	if (nvlist_lookup_nvlist_array(vdev, ZPOOL_CONFIG_L2CACHE, &child,
+	    &children) == 0) {
+		for (c = 0; c < children; c++)
+			if (find_vdev_problem(child[c], func))
+				return (B_TRUE);
+	}
+
 	return (B_FALSE);
 }
 


More information about the svn-src-stable-9 mailing list