 1dba99e34d
			
		
	
	
		1dba99e34d
		
	
	
	
	
		
			
			This patch contains test which minimally tests write-zeroes on top of working discard. The following checks are added: * write 2 clusters, write-zero to the first allocated cluster * write 2 cluster, write-zero to the half the first allocated cluster Signed-off-by: Denis V. Lunev <den@openvz.org> Reviewed-by: Alexander Ivanov <alexander.ivanov@virtuozzo.com>
		
			
				
	
	
		
			103 lines
		
	
	
		
			4.6 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			103 lines
		
	
	
		
			4.6 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| QA output created by 131
 | |
| Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
 | |
| == read empty image ==
 | |
| read 1048576/1048576 bytes at offset 524288
 | |
| 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
 | |
| == write more than 1 block in a row ==
 | |
| wrote 2097152/2097152 bytes at offset 524288
 | |
| 2 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
 | |
| == read less than block ==
 | |
| read 524288/524288 bytes at offset 524288
 | |
| 512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
 | |
| == read exactly 1 block ==
 | |
| read 1048576/1048576 bytes at offset 1048576
 | |
| 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
 | |
| == read more than 1 block ==
 | |
| read 2097152/2097152 bytes at offset 524288
 | |
| 2 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
 | |
| == check that there is no trash after written ==
 | |
| read 524288/524288 bytes at offset 2621440
 | |
| 512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
 | |
| == check that there is no trash before written ==
 | |
| read 524288/524288 bytes at offset 0
 | |
| 512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
 | |
| == corrupt image ==
 | |
| == read corrupted image with repairing ==
 | |
| Repairing image was not closed correctly
 | |
| read 1048576/1048576 bytes at offset 1048576
 | |
| 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
 | |
| == check discard ==
 | |
| Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
 | |
| wrote 2097152/2097152 bytes at offset 0
 | |
| 2 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
 | |
| Offset          Length          File
 | |
| 0               0x200000        TEST_DIR/t.IMGFMT
 | |
| discard 1048576/1048576 bytes at offset 0
 | |
| 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
 | |
| Offset          Length          File
 | |
| 0x100000        0x100000        TEST_DIR/t.IMGFMT
 | |
| read 1048576/1048576 bytes at offset 0
 | |
| 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
 | |
| == check simple allocation over the discarded hole ==
 | |
| wrote 1048576/1048576 bytes at offset 2097152
 | |
| 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
 | |
| Offset          Length          File
 | |
| 0x100000        0x100000        TEST_DIR/t.IMGFMT
 | |
| 0x200000        0x100000        TEST_DIR/t.IMGFMT
 | |
| read 1048576/1048576 bytes at offset 2097152
 | |
| 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
 | |
| == check more complex allocation over the discard hole ==
 | |
| Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
 | |
| wrote 2097152/2097152 bytes at offset 2097152
 | |
| 2 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
 | |
| discard 1048576/1048576 bytes at offset 2097152
 | |
| 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
 | |
| wrote 1048576/1048576 bytes at offset 524288
 | |
| 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
 | |
| Offset          Length          File
 | |
| 0               0x100000        TEST_DIR/t.IMGFMT
 | |
| 0x100000        0x100000        TEST_DIR/t.IMGFMT
 | |
| 0x300000        0x100000        TEST_DIR/t.IMGFMT
 | |
| read 1048576/1048576 bytes at offset 524288
 | |
| 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
 | |
| read 524288/524288 bytes at offset 0
 | |
| 512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
 | |
| read 524288/524288 bytes at offset 1572864
 | |
| 512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
 | |
| == check write-zeroes ==
 | |
| Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
 | |
| wrote 2097152/2097152 bytes at offset 0
 | |
| 2 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
 | |
| wrote 1048576/1048576 bytes at offset 0
 | |
| 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
 | |
| Offset          Length          File
 | |
| 0x100000        0x100000        TEST_DIR/t.IMGFMT
 | |
| read 1048576/1048576 bytes at offset 0
 | |
| 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
 | |
| read 1048576/1048576 bytes at offset 1048576
 | |
| 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
 | |
| == check cluster-partial write-zeroes ==
 | |
| Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
 | |
| wrote 1048576/1048576 bytes at offset 0
 | |
| 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
 | |
| wrote 524288/524288 bytes at offset 0
 | |
| 512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
 | |
| read 524288/524288 bytes at offset 0
 | |
| 512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
 | |
| read 524288/524288 bytes at offset 524288
 | |
| 512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
 | |
| == allocate with backing ==
 | |
| Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
 | |
| Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=67108864
 | |
| wrote 1048576/1048576 bytes at offset 0
 | |
| 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
 | |
| wrote 64/64 bytes at offset 0
 | |
| 64 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
 | |
| read 64/64 bytes at offset 0
 | |
| 64 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
 | |
| read 1048512/1048512 bytes at offset 64
 | |
| 1023.938 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
 | |
| read 66060288/66060288 bytes at offset 1048576
 | |
| 63 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
 | |
| *** done
 |