diff options
author | Ryan Moeller <[email protected]> | 2020-08-30 17:37:44 +0000 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2020-08-31 19:43:30 -0700 |
commit | 46b7d53baf1c17f006a0ff6a8efb01e48ac248bf (patch) | |
tree | fed42666da7d08cea7e780677412d4245d30696d /lib/libspl/include/zone.h | |
parent | eff621071ffd33764b833ea16894bee47d6ffb34 (diff) |
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 <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Ryan Moeller <[email protected]>
Closes #10851
Diffstat (limited to 'lib/libspl/include/zone.h')
-rw-r--r-- | lib/libspl/include/zone.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/libspl/include/zone.h b/lib/libspl/include/zone.h index b4a6deb40..b0ac2d9bc 100644 --- a/lib/libspl/include/zone.h +++ b/lib/libspl/include/zone.h @@ -26,25 +26,16 @@ #ifndef _LIBSPL_ZONE_H #define _LIBSPL_ZONE_H - - #include <sys/types.h> #include <sys/zone.h> -#include <sys/priv.h> #ifdef __cplusplus extern "C" { #endif #define GLOBAL_ZONEID 0 -#define GLOBAL_ZONEID_NAME "global" -/* - * Functions for mapping between id and name for active zones. - */ extern zoneid_t getzoneid(void); -extern zoneid_t getzoneidbyname(const char *); -extern ssize_t getzonenamebyid(zoneid_t, char *, size_t); #ifdef __cplusplus } |