Whamcloud - gitweb
LU-18646 tests: use /dev/urandom to consume space 71/57871/12
authorAndreas Dilger <adilger@whamcloud.com>
Thu, 23 Jan 2025 05:07:26 +0000 (22:07 -0700)
committerOleg Drokin <green@whamcloud.com>
Thu, 6 Feb 2025 01:28:53 +0000 (01:28 +0000)
commit052d622fa1938204f3cb4a9605f692cad3000587
tree76d96a1607b84845c9a0d5a500e083d7dd45fcd9
parent8064b6af1236f2df8d1c801e18f86a583c5a6fb6
LU-18646 tests: use /dev/urandom to consume space

It appears newer ZFS is using data compression by default, so reading
from /dev/zero results in files not consuming the expected amount of
space.  Instead, read from /dev/urandom for ZFS to write files in
sanity-quota and ost-pools to ensure they fill the OSTs as expected.

Minor script style cleanups for affected tests.

Test-Parameters: trivial testlist=sanity-quota,ost-pools fstype=zfs
Test-Parameters: testlist=sanity-quota,ost-pools fstype=ldiskfs
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: Ia2340da6e4c6d00123078545fde135a89c2540e5
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/57871
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Sergey Cheremencev <scherementsev@ddn.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
lustre/tests/ost-pools.sh
lustre/tests/sanity-quota.sh
lustre/tests/test-framework.sh