mirror of
				https://github.com/vdsm/virtual-dsm.git
				synced 2025-11-04 08:54:51 +08:00 
			
		
		
		
	fix: Reduce spare disk space threshold (#1093)
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				Update / dockerHubDescription (push) Has been cancelled
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	Update / dockerHubDescription (push) Has been cancelled
				
			This commit is contained in:
		
							parent
							
								
									a0328e1e9c
								
							
						
					
					
						commit
						8b145924b9
					
				@ -445,7 +445,7 @@ addDisk () {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  if [[ "${DISK_SPACE,,}" == "max" || "${DISK_SPACE,,}" == "half" ]]; then
 | 
					  if [[ "${DISK_SPACE,,}" == "max" || "${DISK_SPACE,,}" == "half" ]]; then
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    local SPARE=2147483648
 | 
					    local SPARE=1073741824
 | 
				
			||||||
    FREE=$(df --output=avail -B 1 "$DIR" | tail -n 1)
 | 
					    FREE=$(df --output=avail -B 1 "$DIR" | tail -n 1)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if [[ "${DISK_SPACE,,}" == "max" ]]; then
 | 
					    if [[ "${DISK_SPACE,,}" == "max" ]]; then
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user