aboutsummaryrefslogtreecommitdiffstats
path: root/include/sys
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2018-01-12 09:36:26 -0800
committerGitHub <[email protected]>2018-01-12 09:36:26 -0800
commite1a0850c3570ae53df5779bc656f17b98b86f160 (patch)
treed17b3ab882718b22d049cd07e7581eda2f76af7a /include/sys
parent6df9f8ebd73c05da627144bcc3823e6fe980cd75 (diff)
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 <[email protected]> Reviewed by: Thomas Caputi <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #7017 Closes #7036
Diffstat (limited to 'include/sys')
-rw-r--r--include/sys/zfs_context.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sys/zfs_context.h b/include/sys/zfs_context.h
index 9da8ab561..6f32b11c7 100644
--- a/include/sys/zfs_context.h
+++ b/include/sys/zfs_context.h
@@ -630,6 +630,8 @@ extern void delay(clock_t ticks);
#define NN_NUMBUF_SZ (6)
extern uint64_t physmem;
+extern char *random_path;
+extern char *urandom_path;
extern int highbit64(uint64_t i);
extern int lowbit64(uint64_t i);