mirror of
				https://git.proxmox.com/git/mirror_zfs.git
				synced 2025-10-26 18:05:04 +03:00 
			
		
		
		
	Importing from cachefile can trip assertion
When importing from cachefile, it is possible that the builtin retry logic will trip an assertion because it also fails to find the pool. This fix addresses that case and returns the correct error message to the user. Reviewed-by: Richard Yao <ryao@gentoo.org> Reviewed-by: Serapheim Dimitropoulos <serapheim@delphix.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: George Wilson <gwilson@delphix.com> Closes #13781
This commit is contained in:
		
							parent
							
								
									b1be0a5c15
								
							
						
					
					
						commit
						15b64fbc94
					
				| @ -1660,6 +1660,8 @@ zpool_find_import_cached(libpc_handle_t *hdl, importargs_t *iarg) | |||||||
| 			 * caller. | 			 * caller. | ||||||
| 			 */ | 			 */ | ||||||
| 			nvpair_t *pair = nvlist_next_nvpair(nv, NULL); | 			nvpair_t *pair = nvlist_next_nvpair(nv, NULL); | ||||||
|  | 			if (pair == NULL) | ||||||
|  | 				continue; | ||||||
| 			fnvlist_add_nvlist(pools, nvpair_name(pair), | 			fnvlist_add_nvlist(pools, nvpair_name(pair), | ||||||
| 			    fnvpair_value_nvlist(pair)); | 			    fnvpair_value_nvlist(pair)); | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 George Wilson
						George Wilson