libspl: move zone definitions from zfs_context.h

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #17861
This commit is contained in:
Rob Norris 2025-10-19 13:09:34 +11:00 committed by Brian Behlendorf
parent 70a1fadaf2
commit b5af61b569
2 changed files with 14 additions and 10 deletions

View File

@ -113,6 +113,7 @@ extern "C" {
#include <sys/sunddi.h>
#include <sys/debug.h>
#include <sys/trace_zfs.h>
#include <sys/zone.h>
#include <sys/mutex.h>
#include <sys/rwlock.h>
@ -211,10 +212,6 @@ typedef off_t loff_t;
extern int highbit64(uint64_t i);
extern int lowbit64(uint64_t i);
#define zone_dataset_visible(x, y) (1)
#define INGLOBALZONE(z) (1)
extern uint32_t zone_get_hostid(void *zonep);
/*
* Hostname information
*/
@ -236,7 +233,6 @@ extern int zfs_secpolicy_rename_perms(const char *from, const char *to,
cred_t *cr);
extern int zfs_secpolicy_destroy_perms(const char *name, cred_t *cr);
extern int secpolicy_zfs(const cred_t *cr);
extern zoneid_t getzoneid(void);
#define DDI_SLEEP KM_SLEEP
#define ddi_log_sysevent(_a, _b, _c, _d, _e, _f, _g) \

View File

@ -21,11 +21,19 @@
* CDDL HEADER END
*/
/*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
* Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
* Copyright 2011 Nexenta Systems, Inc. All rights reserved.
* Copyright (c) 2012, 2018 by Delphix. All rights reserved.
* Copyright (c) 2012, Joyent, Inc. All rights reserved.
*/
#ifndef _LIBSPL_SYS_ZONE_H
#define _LIBSPL_SYS_ZONE_H
#ifndef _SYS_ZONE_H
#define _SYS_ZONE_H
#endif
#define zone_dataset_visible(x, y) (1)
#define INGLOBALZONE(z) (1)
extern uint32_t zone_get_hostid(void *zonep);
#endif /* _SYS_ZONE_H */