diff options
| author | Michael Heller <75820586+mkhllr@users.noreply.github.com> | 2026-08-21 21:26:48 +0000 |
|---|---|---|
| committer | Brian Behlendorf <behlendorf1@llnl.gov> | 2026-08-23 17:38:57 +0000 |
| commit | 84aa7e7e09f6a4ddad9ec40dbe9498d50184ed07 (patch) | |
| tree | bde0ab11213e07000363f2e953350d2905db93dd /pythonmod/pythonmod_utils.c | |
| parent | 9ceb4107a84837d2bfe04c3fa84da844ed1becd7 (diff) | |
libspl: consult ZFS_HOSTID on FreeBSD as wellvendor/openzfs/master
get_system_hostid() returns gethostid() on FreeBSD, so ZFS_HOSTID has
no effect there, while on Linux it overrides the SPL hostid. zloop.sh
exports it for the iterations which need a hostid, and the ztest(1)
ENVIRONMENT VARIABLES section describes it without restricting it to
one platform, so both should read it.
Check ZFS_HOSTID first and fall back to gethostid(), parsing and
masking the value exactly as the Linux implementation does. A value
which parses as zero is ignored there, so it is ignored here too.
Drop the "On Linux" qualifier from the -M description in ztest(1),
which this change makes untrue.
Suggested-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Michael Heller <michael.heller@gmail.com>
Closes #18918
Closes #18964
Diffstat (limited to 'pythonmod/pythonmod_utils.c')
0 files changed, 0 insertions, 0 deletions
