mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 10:37:35 +03:00
ZTS: default to random data in fill_fs
Update the fill_fs helper function to request a random fill pattern when the "data" argument isn't specified. This ensures the default behavior is to perform a more realistic fill of incompressible blocks. Additionally, update a few test cases to specify a random fill. Reviewed-by: George Melikov <mail@gmelikov.ru> Reviewed-by: Alexander Motin <alexander.motin@TrueNAS.com> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #17739
This commit is contained in:
@@ -1085,7 +1085,7 @@ function fill_fs # destdir dirnum filenum bytes num_writes data
|
||||
typeset -i filenum=${3:-50}
|
||||
typeset -i bytes=${4:-8192}
|
||||
typeset -i num_writes=${5:-10240}
|
||||
typeset data=${6:-0}
|
||||
typeset data=${6:-"R"}
|
||||
|
||||
mkdir -p $destdir/{1..$dirnum}
|
||||
for f in $destdir/{1..$dirnum}/$TESTFILE{1..$filenum}; do
|
||||
|
||||
Reference in New Issue
Block a user