From: Wei Liu Date: Tue, 3 Oct 2023 22:31:52 +0000 (-0700) Subject: LU-10026 tests: Fix sanity test_56ab for CSDC X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=1ce661dd56fb4b6ecc9e909805c6101bbd9c3161;p=fs%2Flustre-release.git LU-10026 tests: Fix sanity test_56ab for CSDC Use /dev/urandom in sanity test_56ab so the data cannot be compressed Test-Parameters: trivial testlist=sanity env=ONLY=56ab Signed-off-by: Wei Liu Change-Id: Ib0108f4507a7b46ad5ca973ef43351e005232edf --- diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index 56740d7..604ea41 100755 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -8549,9 +8549,9 @@ run_test 56aa "lfs find --size under striped dir" test_56ab() { # LU-10705 test_mkdir $DIR/$tdir - dd if=/dev/zero of=$DIR/$tdir/$tfile.1 bs=8k count=1 seek=2k - dd if=/dev/zero of=$DIR/$tdir/$tfile.2 bs=4k count=1 seek=4k - dd if=/dev/zero of=$DIR/$tdir/$tfile.3 bs=1M count=2 seek=16 + dd if=/dev/urandom of=$DIR/$tdir/$tfile.1 bs=8k count=1 seek=2k + dd if=/dev/urandom of=$DIR/$tdir/$tfile.2 bs=4k count=1 seek=4k + dd if=/dev/urandom of=$DIR/$tdir/$tfile.3 bs=1M count=2 seek=16 # Flush writes to ensure valid blocks. Need to be more thorough for # ZFS, since blocks are not allocated/returned to client immediately. sync_all_data