HomeFreeBSD

ZTS: Simplify some libtest functions

Description

ZTS: Simplify some libtest functions

Don't echo the results of arithmetic expressions, it's not necessary.

Use hw.clockrate sysctl to get CPU freq instead of parsing dmesg.boot
for a line that might not even be there anymore.

Reduce bookkeeping in fill_fs, making it easier to follow.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: John Kennedy <john.kennedy@delphix.com>
Signed-off-by: Ryan Moeller <ryan@iXsystems.com>
Closes #10113

Details

Provenance
freqlabsAuthored on Mar 10 2020, 5:44 PM
GitHub <noreply@github.com>Committed on Mar 10 2020, 5:44 PM
Parents
rG5ecbb293c64e: Fix zfs-functions packaging bug
Branches
Unknown
Tags
Unknown