mirror of
				https://git.proxmox.com/git/mirror_zfs.git
				synced 2025-10-26 18:05:04 +03:00 
			
		
		
		
	ZTS: Stop zpool_status tests from spamming stdout (#17292)
zpool_status_003 and zpool_status_004_pos use 'dd' to trigger a read of
a file without specifying 'of=/dev/null'.  This spams the ZTS logs
with ~20MB of garbage data. This commit adds 'of=/dev/null'.
Signed-off-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
(cherry picked from commit a6cca8a7da)
			
			
This commit is contained in:
		
							parent
							
								
									4b014840ea
								
							
						
					
					
						commit
						fcc7259789
					
				| @ -59,7 +59,7 @@ log_must fio --rw=write --name=job --size=10M --filename=/$TESTPOOL2/10m_file | |||||||
| log_must zinject -t data -e checksum -f 100 -am /$TESTPOOL2/10m_file | log_must zinject -t data -e checksum -f 100 -am /$TESTPOOL2/10m_file | ||||||
| 
 | 
 | ||||||
| # Try to read the 2nd megabyte of 10m_file | # Try to read the 2nd megabyte of 10m_file | ||||||
| dd if=/$TESTPOOL2/10m_file bs=1M || true | dd if=/$TESTPOOL2/10m_file bs=1M of=/dev/null || true | ||||||
| 
 | 
 | ||||||
| log_must zfs snapshot $TESTPOOL2@snap | log_must zfs snapshot $TESTPOOL2@snap | ||||||
| log_must zfs clone $TESTPOOL2@snap $TESTPOOL2/clone | log_must zfs clone $TESTPOOL2@snap $TESTPOOL2/clone | ||||||
|  | |||||||
| @ -63,7 +63,7 @@ log_must fio --rw=write --name=job --size=10M --filename=/$TESTPOOL2/10m_file | |||||||
| log_must zinject -t data -e checksum -f 100 -am /$TESTPOOL2/10m_file | log_must zinject -t data -e checksum -f 100 -am /$TESTPOOL2/10m_file | ||||||
| 
 | 
 | ||||||
| # Try to read the file | # Try to read the file | ||||||
| dd if=/$TESTPOOL2/10m_file bs=1M || true | dd if=/$TESTPOOL2/10m_file bs=1M of=/dev/null || true | ||||||
| 
 | 
 | ||||||
| log_must zfs snapshot $TESTPOOL2@snap | log_must zfs snapshot $TESTPOOL2@snap | ||||||
| log_must zfs clone $TESTPOOL2@snap $TESTPOOL2/clone | log_must zfs clone $TESTPOOL2@snap $TESTPOOL2/clone | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Tony Hutter
						Tony Hutter