Whamcloud - gitweb
LU-17763 tests: use urandom in sanity/66 87/57987/2
authorAlex Zhuravlev <bzzz@whamcloud.com>
Thu, 6 Feb 2025 13:09:14 +0000 (16:09 +0300)
committerOleg Drokin <green@whamcloud.com>
Tue, 11 Feb 2025 05:33:24 +0000 (05:33 +0000)
as zfs-2.2.6 compresses data by default and this breaks the test
using /dev/zero as a source.

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

index c4c008f..133458c 100755 (executable)
@@ -11244,7 +11244,7 @@ test_66() {
        [ $PARALLEL == "yes" ] && skip "skip parallel run"
 
        local COUNT=${COUNT:-8}
-       dd if=/dev/zero of=$DIR/f66 bs=1k count=$COUNT
+       dd if=/dev/urandom of=$DIR/f66 bs=1k count=$COUNT
        sync; sync_all_data; sync; sync_all_data
        cancel_lru_locks osc
        local BLOCKS=$(ls -s --block-size=1k $DIR/f66 | awk '{ print $1 }')