mirror of
				https://git.proxmox.com/git/mirror_zfs.git
				synced 2025-10-26 18:05:04 +03:00 
			
		
		
		
	zdb: show bp in uberblock dump
Just another useful nugget of info in times of strife. Sponsored-by: https://despairlabs.com/sponsor/ Reviewed-by: George Melikov <mail@gmelikov.ru> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de> Signed-off-by: Rob Norris <robn@despairlabs.com> Closes #16667
This commit is contained in:
		
							parent
							
								
									2b359c7824
								
							
						
					
					
						commit
						78d39d91fa
					
				| @ -4266,6 +4266,10 @@ dump_uberblock(uberblock_t *ub, const char *header, const char *footer) | ||||
| 	(void) printf("\ttimestamp = %llu UTC = %s", | ||||
| 	    (u_longlong_t)ub->ub_timestamp, ctime(×tamp)); | ||||
| 
 | ||||
| 	char blkbuf[BP_SPRINTF_LEN]; | ||||
| 	snprintf_blkptr(blkbuf, sizeof (blkbuf), &ub->ub_rootbp); | ||||
| 	(void) printf("\tbp = %s\n", blkbuf); | ||||
| 
 | ||||
| 	(void) printf("\tmmp_magic = %016llx\n", | ||||
| 	    (u_longlong_t)ub->ub_mmp_magic); | ||||
| 	if (MMP_VALID(ub)) { | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Rob Norris
						Rob Norris