]> git.proxmox.com Git - mirror_zfs.git/commit - lib/libzpool/kernel.c
Force ztest to always use /dev/urandom
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 12 Jan 2018 17:36:26 +0000 (09:36 -0800)
committerGitHub <noreply@github.com>
Fri, 12 Jan 2018 17:36:26 +0000 (09:36 -0800)
commite1a0850c3570ae53df5779bc656f17b98b86f160
treed17b3ab882718b22d049cd07e7581eda2f76af7a
parent6df9f8ebd73c05da627144bcc3823e6fe980cd75
Force ztest to always use /dev/urandom

For ztest, which is solely for testing, using a pseudo random
is entirely reasonable.  Using /dev/urandom ensures the system
entropy pool doesn't get depleted thus stalling the testing.
This is a particular problem when testing in VMs.

Reviewed-by: Tim Chase <tim@chase2k.com>
Reviewed by: Thomas Caputi <tcaputi@datto.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #7017
Closes #7036
cmd/ztest/ztest.c
include/sys/zfs_context.h
lib/libzpool/kernel.c
rpm/generic/zfs.spec.in
scripts/zloop.sh