mirror of
				https://git.proxmox.com/git/mirror_zfs
				synced 2025-11-04 08:52:47 +00:00 
			
		
		
		
	Updated paths to scan when importing zpool(s)
Added by-partlabel and by-partuuid to the default device search path. Made made device names in by-label more preferable. Signed-off-by: Thijs Cramer <thijs.cramer@gmail.com> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #3892
This commit is contained in:
		
							parent
							
								
									7d11e37e55
								
							
						
					
					
						commit
						95003f7098
					
				@ -64,7 +64,7 @@ extern "C" {
 | 
			
		||||
 */
 | 
			
		||||
#define	DISK_LABEL_WAIT		(30 * 1000)  /* 30 seconds */
 | 
			
		||||
 | 
			
		||||
#define	DEFAULT_IMPORT_PATH_SIZE	7
 | 
			
		||||
#define	DEFAULT_IMPORT_PATH_SIZE	9
 | 
			
		||||
extern char *zpool_default_import_path[DEFAULT_IMPORT_PATH_SIZE];
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
 | 
			
		||||
@ -1273,10 +1273,12 @@ char *
 | 
			
		||||
zpool_default_import_path[DEFAULT_IMPORT_PATH_SIZE] = {
 | 
			
		||||
	"/dev/disk/by-vdev",	/* Custom rules, use first if they exist */
 | 
			
		||||
	"/dev/mapper",		/* Use multipath devices before components */
 | 
			
		||||
	"/dev/disk/by-partlabel", /* Single unique entry set by user */
 | 
			
		||||
	"/dev/disk/by-partuuid", /* Generated partition uuid */
 | 
			
		||||
	"/dev/disk/by-label",	/* Custom persistent labels */
 | 
			
		||||
	"/dev/disk/by-uuid",	/* Single unique entry and persistent */
 | 
			
		||||
	"/dev/disk/by-id",	/* May be multiple entries and persistent */
 | 
			
		||||
	"/dev/disk/by-path",	/* Encodes physical location and persistent */
 | 
			
		||||
	"/dev/disk/by-label",	/* Custom persistent labels */
 | 
			
		||||
	"/dev"			/* UNSAFE device names will change */
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user