HomeFreeBSD

libzpool: set_global_var: fix endianness handling (fixes zdb -o )

Description

libzpool: set_global_var: fix endianness handling (fixes zdb -o )

Without this patch I get the error

Setting global variables is only supported on little-endian systems

when using zdb -o on my amd64 machine.

Reviewed-by: Matthew Ahrens <mahrens@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Pavel Zakharov <pavel.zakharov@delphix.com>
Signed-off-by: Christian Schwarz <me@cschwarz.com>
Closes #11602

Details

Provenance
me_cschwarz.comAuthored on Feb 15 2021, 12:02 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Feb 20 2021, 6:44 AM
Parents
rG64e0fe14fff4: Restore FreeBSD resource usage accounting
Branches
Unknown
Tags
Unknown