Date: Wed, 5 Jun 2013 11:46:43 +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-9@freebsd.org Subject: svn commit: r251416 - stable/9/cddl/contrib/opensolaris/lib/libzfs/common Message-ID: <201306051146.r55BkhlT065716@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306051146.r55BkhlT065716>