Whamcloud - gitweb
LU-18728 tests: use urandom to really consume ZFS space 15/58115/8
authorBruno Faccini <bfaccini@nvidia.com>
Tue, 18 Feb 2025 17:36:12 +0000 (18:36 +0100)
committerOleg Drokin <green@whamcloud.com>
Wed, 19 Mar 2025 23:33:55 +0000 (23:33 +0000)
commit6153eed3ee180e8695c9e2e3d9ad9db8a6b73ad8
treece512bdb186c7a5beae3d5ac7a28a5414bba21bc
parentf7495bc57f4873db2760fbe6a2c36e3ce8ef546d
LU-18728 tests: use urandom to really consume ZFS 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 and conf-sanity to ensure they fill the OSTs, or the image
to be used for target creation, as expected.

Test-Parameters: testgroup=review-zfs env=ZFS_MKFS_OPTS="compression=on"
Signed-off-by: Bruno Faccini <bfaccini@nvidia.com>
Change-Id: I7b4e95032608d8db82c75e4b6dd1ec5beb6f8d99
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/58115
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/conf-sanity.sh
lustre/tests/sanity.sh