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:
Tony Hutter 2025-05-02 11:18:19 -07:00 committed by GitHub
parent f40ab9e399
commit a6cca8a7da
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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