Whamcloud - gitweb
LU-18651 tests: use urandom in sanity-pfl test 19/58019/4
authorJames Simmons <jsimmons@infradead.org>
Sat, 8 Feb 2025 13:46:18 +0000 (08:46 -0500)
committerOleg Drokin <green@whamcloud.com>
Fri, 14 Feb 2025 02:57:39 +0000 (02:57 +0000)
With newer ZF having compression on test using dd with /dev/zero
will fail. Change the sanity-pfl test to use /dev/urandom
instead.

Change-Id: I508611fd3cee96bab623e3e12fbc1cad060b72f7
Test-Parameters: trivial fstype=zfs testlist=sanity-pfl
Signed-off-by: James Simmons <jsimmons@infradead.org>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/58019
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Timothy Day <timday@amazon.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
lustre/tests/sanity-pfl.sh

index 578bb27..0ae0a84 100755 (executable)
@@ -1792,7 +1792,7 @@ test_20c() {
        stack_trap "ost_watermarks_clear_enospc $tfile $ost_idx1 $wms" EXIT
        stack_trap "ost_watermarks_clear_enospc $tfile $ost_idx2 $wms2" EXIT
 
-       dd if=/dev/zero of=$comp_file bs=1M count=1 seek=120 &&
+       dd if=/dev/urandom of=$comp_file bs=1M count=1 seek=120 &&
                error "dd should fail with ENOSPC"
 
        flg_opts="--comp-flags init"