mirror of
				https://github.com/vdsm/virtual-dsm.git
				synced 2025-11-04 08:54:51 +08:00 
			
		
		
		
	fix: Remove unused vars
fix: Remove unused vars
This commit is contained in:
		
						commit
						451a569617
					
				@ -27,9 +27,7 @@ addDisk () {
 | 
				
			|||||||
  local GB
 | 
					  local GB
 | 
				
			||||||
  local DIR
 | 
					  local DIR
 | 
				
			||||||
  local REQ
 | 
					  local REQ
 | 
				
			||||||
  local SIZE
 | 
					 | 
				
			||||||
  local SPACE
 | 
					  local SPACE
 | 
				
			||||||
  local MIN_SIZE
 | 
					 | 
				
			||||||
  local CUR_SIZE
 | 
					  local CUR_SIZE
 | 
				
			||||||
  local DATA_SIZE
 | 
					  local DATA_SIZE
 | 
				
			||||||
  local DISK_ID=$1
 | 
					  local DISK_ID=$1
 | 
				
			||||||
@ -46,8 +44,7 @@ addDisk () {
 | 
				
			|||||||
  DISK_SPACE=$(echo "${DISK_SPACE}" | sed 's/MB/M/g;s/GB/G/g;s/TB/T/g')
 | 
					  DISK_SPACE=$(echo "${DISK_SPACE}" | sed 's/MB/M/g;s/GB/G/g;s/TB/T/g')
 | 
				
			||||||
  DATA_SIZE=$(numfmt --from=iec "${DISK_SPACE}")
 | 
					  DATA_SIZE=$(numfmt --from=iec "${DISK_SPACE}")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  MIN_SIZE=6442450944
 | 
					  if (( DATA_SIZE < 6442450944 )); then
 | 
				
			||||||
  if (( DATA_SIZE < MIN_SIZE )); then
 | 
					 | 
				
			||||||
    error "Please increase ${DISK_DESC^^}_SIZE to at least 6 GB." && exit 83
 | 
					    error "Please increase ${DISK_DESC^^}_SIZE to at least 6 GB." && exit 83
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user