Author: delphij
Date: Tue Jun 25 21:34:21 2013
New Revision: 252213
URL: http://svnweb.freebsd.org/changeset/base/252213

Log:
  Update vendor/illumos/dist to illumos-gate 14056:812b3d1ca0a0
  
  Illumos ZFS issues:
    3818 zpool status -x should report pools with removed l2arc devices

Modified:
  vendor/illumos/dist/lib/libzfs/common/libzfs_status.c

Modified: vendor/illumos/dist/lib/libzfs/common/libzfs_status.c
==============================================================================
--- vendor/illumos/dist/lib/libzfs/common/libzfs_status.c       Tue Jun 25 
20:23:08 2013        (r252212)
+++ vendor/illumos/dist/lib/libzfs/common/libzfs_status.c       Tue Jun 25 
21:34:21 2013        (r252213)
@@ -22,6 +22,7 @@
 /*
  * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
  * Copyright (c) 2012 by Delphix. All rights reserved.
+ * Copyright (c) 2013 Steven Hartland. All rights reserved.
  */
 
 /*
@@ -150,6 +151,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);
 }
 
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to