mirror of
				https://github.com/vdsm/virtual-dsm.git
				synced 2025-11-04 08:54:51 +08:00 
			
		
		
		
	Write random
This commit is contained in:
		
							parent
							
								
									e68ab4fbc9
								
							
						
					
					
						commit
						ecbff16fa2
					
				@ -48,7 +48,7 @@ if [ -f "${DATA}" ]; then
 | 
			
		||||
      if [ "$ALLOCATE" = "Z" ]; then
 | 
			
		||||
 | 
			
		||||
        GB=$(( (REQ + 1073741823)/1073741824 ))
 | 
			
		||||
        echo "INFO: Writing ${GB} GB of zeroes, please wait.." > /dev/null
 | 
			
		||||
        echo "INFO: Filling ${GB} GB of space, please wait.." > /dev/null
 | 
			
		||||
 | 
			
		||||
        dd if=/dev/urandom of="${DATA}" seek="${OLD_SIZE}" count="${REQ}" bs=1M iflag=count_bytes oflag=seek_bytes
 | 
			
		||||
 | 
			
		||||
@ -92,7 +92,7 @@ if [ ! -f "${DATA}" ]; then
 | 
			
		||||
 | 
			
		||||
    if [ "$ALLOCATE" = "Z" ]; then
 | 
			
		||||
 | 
			
		||||
      echo "INFO: Writing ${DISK_SIZE} of zeroes, please wait.."
 | 
			
		||||
      echo "INFO: Filling ${DISK_SIZE} of space, please wait.."
 | 
			
		||||
 | 
			
		||||
      dd if=/dev/urandom of="${DATA}" count="${DATA_SIZE}" bs=1M iflag=count_bytes > /dev/null
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user