mirror of
				https://git.proxmox.com/git/mirror_zfs.git
				synced 2025-10-26 18:05:04 +03:00 
			
		
		
		
	Move "no name changes" from compression to checksum table
Compression names actually aren't used in dedup table names, but checksum names are. Sponsored-by: Klara, Inc. Sponsored-by: Wasabi Technology, Inc. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Alexander Motin <mav@FreeBSD.org> Reviewed-by: George Melikov <mail@gmelikov.ru> Signed-off-by: Rob Norris <rob.norris@klarasystems.com> Closes #16776
This commit is contained in:
		
							parent
							
								
									e08e832b10
								
							
						
					
					
						commit
						ffe2112795
					
				@ -160,6 +160,12 @@ abd_fletcher_4_byteswap(abd_t *abd, uint64_t size,
 | 
				
			|||||||
	abd_fletcher_4_impl(abd, size, &acd);
 | 
						abd_fletcher_4_impl(abd, size, &acd);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/*
 | 
				
			||||||
 | 
					 * Checksum vectors.
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 * Note: you cannot change the name string for these functions, as they are
 | 
				
			||||||
 | 
					 * embedded in on-disk data in some places (eg dedup table names).
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
zio_checksum_info_t zio_checksum_table[ZIO_CHECKSUM_FUNCTIONS] = {
 | 
					zio_checksum_info_t zio_checksum_table[ZIO_CHECKSUM_FUNCTIONS] = {
 | 
				
			||||||
	{{NULL, NULL}, NULL, NULL, 0, "inherit"},
 | 
						{{NULL, NULL}, NULL, NULL, 0, "inherit"},
 | 
				
			||||||
	{{NULL, NULL}, NULL, NULL, 0, "on"},
 | 
						{{NULL, NULL}, NULL, NULL, 0, "on"},
 | 
				
			||||||
 | 
				
			|||||||
@ -44,10 +44,6 @@ static unsigned long zio_decompress_fail_fraction = 0;
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
/*
 | 
					/*
 | 
				
			||||||
 * Compression vectors.
 | 
					 * Compression vectors.
 | 
				
			||||||
 *
 | 
					 | 
				
			||||||
 * NOTE: DO NOT CHANGE THE NAMES OF THESE COMPRESSION FUNCTIONS.
 | 
					 | 
				
			||||||
 * THEY ARE USED AS ZAP KEY NAMES BY FAST DEDUP AND THEREFORE
 | 
					 | 
				
			||||||
 * PART OF THE ON-DISK FORMAT.
 | 
					 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
zio_compress_info_t zio_compress_table[ZIO_COMPRESS_FUNCTIONS] = {
 | 
					zio_compress_info_t zio_compress_table[ZIO_COMPRESS_FUNCTIONS] = {
 | 
				
			||||||
	{"inherit",	0,	NULL,	NULL, NULL},
 | 
						{"inherit",	0,	NULL,	NULL, NULL},
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user