mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-05-23 15:04:59 +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>
This commit is contained in:
parent
f40ab9e399
commit
a6cca8a7da
@ -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
|
||||
|
||||
# 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 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
|
||||
|
||||
# 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 clone $TESTPOOL2@snap $TESTPOOL2/clone
|
||||
|
Loading…
Reference in New Issue
Block a user