From 2b24cff063feb18b68cc1b5c090456c2721d9d2d Mon Sep 17 00:00:00 2001 From: Xin LI Date: Tue, 25 Jun 2013 21:34:21 +0000 Subject: [PATCH] Update vendor/illumos/dist to illumos-gate 14056:812b3d1ca0a0 Illumos ZFS issues: 3818 zpool status -x should report pools with removed l2arc devices --- lib/libzfs/common/libzfs_status.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lib/libzfs/common/libzfs_status.c b/lib/libzfs/common/libzfs_status.c index 560bacdc37f..71b27a12140 100644 --- a/lib/libzfs/common/libzfs_status.c +++ b/lib/libzfs/common/libzfs_status.c @@ -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 (*func)(uint64_t, uint64_t, uint64_t)) 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); }