mirror of
				https://git.proxmox.com/git/mirror_zfs.git
				synced 2025-10-26 18:05:04 +03:00 
			
		
		
		
	Sort output of tunables in arc_summary.py
Sort list of tunables printed by _tunable_summary() alphabetically Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov> Signed-off-by: Scot W. Stevenson <scot.stevenson@gmail.com> Closes #6828
This commit is contained in:
		
							parent
							
								
									12954494a1
								
							
						
					
					
						commit
						681957fe2e
					
				@ -900,14 +900,18 @@ def _tunable_summary(Kstat):
 | 
				
			|||||||
            sys.stderr.write("Tunable descriptions will be disabled.\n")
 | 
					            sys.stderr.write("Tunable descriptions will be disabled.\n")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    sys.stdout.write("ZFS Tunable:\n")
 | 
					    sys.stdout.write("ZFS Tunable:\n")
 | 
				
			||||||
 | 
					    names.sort()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    if alternate_tunable_layout:
 | 
				
			||||||
 | 
					        format = "\t%s=%s\n"
 | 
				
			||||||
 | 
					    else:
 | 
				
			||||||
 | 
					        format = "\t%-50s%s\n"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    for name in names:
 | 
					    for name in names:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if not name:
 | 
					        if not name:
 | 
				
			||||||
            continue
 | 
					            continue
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        format = "\t%-50s%s\n"
 | 
					 | 
				
			||||||
        if alternate_tunable_layout:
 | 
					 | 
				
			||||||
            format = "\t%s=%s\n"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        if show_tunable_descriptions and name in descriptions:
 | 
					        if show_tunable_descriptions and name in descriptions:
 | 
				
			||||||
            sys.stdout.write("\t# %s\n" % descriptions[name])
 | 
					            sys.stdout.write("\t# %s\n" % descriptions[name])
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user