mirror of
				https://git.proxmox.com/git/mirror_zfs.git
				synced 2025-10-26 18:05:04 +03:00 
			
		
		
		
	zed: Fix zed ASSERT on slot power cycle
We would see zed assert on one of our systems if we powered off a slot. Further examination showed zfs_retire_recv() was reporting a GUID of 0, which in turn would return a NULL nvlist. Add in a check for a zero GUID. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Tony Hutter <hutter2@llnl.gov> Closes #15084
This commit is contained in:
		
							parent
							
								
									b221f43943
								
							
						
					
					
						commit
						8c81c0b05d
					
				| @ -416,6 +416,11 @@ zfs_retire_recv(fmd_hdl_t *hdl, fmd_event_t *ep, nvlist_t *nvl, | |||||||
| 		    FM_EREPORT_PAYLOAD_ZFS_VDEV_GUID, &vdev_guid) != 0) | 		    FM_EREPORT_PAYLOAD_ZFS_VDEV_GUID, &vdev_guid) != 0) | ||||||
| 			return; | 			return; | ||||||
| 
 | 
 | ||||||
|  | 		if (vdev_guid == 0) { | ||||||
|  | 			fmd_hdl_debug(hdl, "Got a zero GUID"); | ||||||
|  | 			return; | ||||||
|  | 		} | ||||||
|  | 
 | ||||||
| 		if (spare) { | 		if (spare) { | ||||||
| 			int nspares = find_and_remove_spares(zhdl, vdev_guid); | 			int nspares = find_and_remove_spares(zhdl, vdev_guid); | ||||||
| 			fmd_hdl_debug(hdl, "%d spares removed", nspares); | 			fmd_hdl_debug(hdl, "%d spares removed", nspares); | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Tony Hutter
						Tony Hutter