aboutsummaryrefslogtreecommitdiff
path: root/pythonmod/pythonmod_utils.c
diff options
context:
space:
mode:
authorMichael Heller <75820586+mkhllr@users.noreply.github.com>2026-08-21 21:26:48 +0000
committerBrian Behlendorf <behlendorf1@llnl.gov>2026-08-23 17:38:57 +0000
commit84aa7e7e09f6a4ddad9ec40dbe9498d50184ed07 (patch)
treebde0ab11213e07000363f2e953350d2905db93dd /pythonmod/pythonmod_utils.c
parent9ceb4107a84837d2bfe04c3fa84da844ed1becd7 (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