HomeFreeBSD

libspl: Provide platform-specific zone implementations

Description

libspl: Provide platform-specific zone implementations

FreeBSD has the concept of jails, a precursor to Solaris's zones, which
can be mapped to the required zones interface with relative ease. The
previous ZFS implementation in FreeBSD did so, and we should continue
to provide an appropriate implementation in OpenZFS as well.

Move lib/libspl/zone.c into platform code and adopt the correct
implementation for FreeBSD.

While here, prune unused code.

Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ryan Moeller <freqlabs@FreeBSD.org>
Closes #10851

Details

Provenance
freqlabsAuthored on Aug 30 2020, 5:37 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Sep 1 2020, 2:43 AM
Parents
rGeff621071ffd: FreeBSD: Simplify INGLOBALZONE
Branches
Unknown
Tags
Unknown