mirror_zfs/cmd
Rob Norris 23d17f3587 libspl/random: add switch to force pseudo-random numbers for all calls
ztest wants to force all kernel random calls to use the pseudo-random
generator (/dev/urandom), to avoid depleting the system entropy pool
just for testing.

Up until the previous commit, it did this by switching the path that the
libzpool (now libspl) random API would use to get random data from; that
is, it took advantage of an implementation detail.

Now that that hole is closed to it, we need another method. This commit
introduces that; a simple API call to enable/disable "force pseudo"
mode.

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #17861
2025-11-12 10:04:30 -08:00
..
raidz_test libzpool: separate driver-side include 2025-11-12 10:01:04 -08:00
zdb libzpool: separate driver-side include 2025-11-12 10:01:04 -08:00
zed zed: Add synchronous zedlets 2025-09-11 11:34:07 -07:00
zfs Linux 6.17 compat: Fix broken projectquota on 6.17 2025-11-05 16:22:03 -08:00
zinject zinject: Introduce ready delay fault injection 2025-10-01 12:17:13 -07:00
zpool Add BRT support to zpool prefetch command 2025-11-10 16:16:22 -08:00
zpool_influxdb SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
zstream libspl: hide global data objects 2025-11-12 10:04:22 -08:00
dbufstat.in SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
fsck.zfs.in cmd: move single-file binaries up, extract udev programs to udev/ 2022-05-10 10:20:34 -07:00
Makefile.am cmd: rename arcstat to zarcstat 2025-09-10 10:45:21 -07:00
mount_zfs.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
zarcstat.in cmd: rename arcstat to zarcstat 2025-09-10 10:45:21 -07:00
zarcsummary cmd: rename arc_summary to zarcsummary 2025-09-10 10:45:13 -07:00
zfs_ids_to_path.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
zgenhostid.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
zhack.c libzpool: separate driver-side include 2025-11-12 10:01:04 -08:00
zilstat.in ZIL: "crash" the ZIL if the pool suspends during fallback 2025-08-08 16:43:26 -07:00
ztest.c libspl/random: add switch to force pseudo-random numbers for all calls 2025-11-12 10:04:30 -08:00
zvol_wait zvol_wait logic may terminate prematurely 2022-10-11 12:12:04 -07:00