Date: Tue, 15 Jan 2013 23:34:25 +0000 (UTC) From: Steven Hartland <smh@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r245479 - head/cddl/contrib/opensolaris/lib/libzfs/common Message-ID: <201301152334.r0FNYPtf086431@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201301152334.r0FNYPtf086431>