Add the case to the iotest #214 that checks possibility of writing compressed data of more than one cluster size. The test case involves the compress filter driver showing a sample usage of that. Signed-off-by: Andrey Shinkevich <andrey.shinkevich@virtuozzo.com> Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Message-id: 1575288906-551879-4-git-send-email-andrey.shinkevich@virtuozzo.com Signed-off-by: Max Reitz <mreitz@redhat.com>
		
			
				
	
	
		
			50 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			50 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
QA output created by 214
 | 
						|
 | 
						|
=== Corrupted size field in compressed cluster descriptor ===
 | 
						|
 | 
						|
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=8388608
 | 
						|
wrote 2097152/2097152 bytes at offset 0
 | 
						|
2 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
 | 
						|
wrote 2097152/2097152 bytes at offset 2097152
 | 
						|
2 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
 | 
						|
read failed: Input/output error
 | 
						|
No errors were found on the image.
 | 
						|
read 4194304/4194304 bytes at offset 0
 | 
						|
4 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
 | 
						|
wrote 4194304/4194304 bytes at offset 4194304
 | 
						|
4 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
 | 
						|
read 4194304/4194304 bytes at offset 0
 | 
						|
4 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
 | 
						|
ERROR cluster 6 refcount=1 reference=3
 | 
						|
ERROR cluster 7 refcount=1 reference=2
 | 
						|
Repairing cluster 6 refcount=1 reference=3
 | 
						|
Repairing cluster 7 refcount=1 reference=2
 | 
						|
Repairing OFLAG_COPIED data cluster: l2_entry=8000000000c00000 refcount=3
 | 
						|
Repairing OFLAG_COPIED data cluster: l2_entry=8000000000e00000 refcount=2
 | 
						|
The following inconsistencies were found and repaired:
 | 
						|
 | 
						|
    0 leaked clusters
 | 
						|
    4 corruptions
 | 
						|
 | 
						|
Double checking the fixed image now...
 | 
						|
No errors were found on the image.
 | 
						|
read 4194304/4194304 bytes at offset 0
 | 
						|
4 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
 | 
						|
read 4194304/4194304 bytes at offset 4194304
 | 
						|
4 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
 | 
						|
 | 
						|
=== Write compressed data of multiple clusters ===
 | 
						|
 | 
						|
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=2097152
 | 
						|
Write uncompressed data:
 | 
						|
wrote 524288/524288 bytes at offset 0
 | 
						|
512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
 | 
						|
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=2097152
 | 
						|
Write compressed data:
 | 
						|
wrote 229376/229376 bytes at offset 0
 | 
						|
224 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
 | 
						|
wrote 229376/229376 bytes at offset 278528
 | 
						|
224 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
 | 
						|
"compressed-clusters": 8
 | 
						|
*** done
 |