mirror of
				https://git.proxmox.com/git/mirror_zfs
				synced 2025-10-31 07:39:20 +00:00 
			
		
		
		
	Illumos #3818
3818 zpool status -x should report pools with removed l2arc devices Reviewed by: Saso Kiselkov <skiselkov.ml@gmail.com> Reviewed by: George Wilson <gwilson@zfsmail.com> Approved by: Christopher Siden <christopher.siden@delphix.com> References: https://www.illumos.org/issues/3818 illumos/illumos-gate@7f2416ef64 Ported-by: Richard Yao <ryao@gentoo.org> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Issue #1775
This commit is contained in:
		
							parent
							
								
									95fd54a1c5
								
							
						
					
					
						commit
						34ffbed88c
					
				| @ -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); | ||||
| } | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Steven Hartland
						Steven Hartland