svn commit: r245479 - head/cddl/contrib/opensolaris/lib/libzfs/common
Steven Hartland
smh at FreeBSD.org
Tue Jan 15 23:34:25 UTC 2013
Author: smh
Date: Tue Jan 15 23:34:24 2013
New Revision: 245479
URL: http://svnweb.freebsd.org/changeset/base/245479
Log:
Reports pools which have a removed l2cache disk under -x as this is what
happens when a cache device is dropped for any reason.
Reviewed by: pjd
Approved by: pjd (mentor)
MFC after: 2 weeks
Modified:
head/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_status.c
Modified: head/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_status.c
==============================================================================
--- head/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_status.c Tue Jan 15 22:11:28 2013 (r245478)
+++ head/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_status.c Tue Jan 15 23:34:24 2013 (r245479)
@@ -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-all
mailing list