mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-29 18:24:11 +03:00
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:
committed by
Brian Behlendorf
parent
70a1fadaf2
commit
b5af61b569
@@ -113,6 +113,7 @@ extern "C" {
|
|||||||
#include <sys/sunddi.h>
|
#include <sys/sunddi.h>
|
||||||
#include <sys/debug.h>
|
#include <sys/debug.h>
|
||||||
#include <sys/trace_zfs.h>
|
#include <sys/trace_zfs.h>
|
||||||
|
#include <sys/zone.h>
|
||||||
|
|
||||||
#include <sys/mutex.h>
|
#include <sys/mutex.h>
|
||||||
#include <sys/rwlock.h>
|
#include <sys/rwlock.h>
|
||||||
@@ -211,10 +212,6 @@ typedef off_t loff_t;
|
|||||||
extern int highbit64(uint64_t i);
|
extern int highbit64(uint64_t i);
|
||||||
extern int lowbit64(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
|
* Hostname information
|
||||||
*/
|
*/
|
||||||
@@ -236,7 +233,6 @@ extern int zfs_secpolicy_rename_perms(const char *from, const char *to,
|
|||||||
cred_t *cr);
|
cred_t *cr);
|
||||||
extern int zfs_secpolicy_destroy_perms(const char *name, cred_t *cr);
|
extern int zfs_secpolicy_destroy_perms(const char *name, cred_t *cr);
|
||||||
extern int secpolicy_zfs(const cred_t *cr);
|
extern int secpolicy_zfs(const cred_t *cr);
|
||||||
extern zoneid_t getzoneid(void);
|
|
||||||
|
|
||||||
#define DDI_SLEEP KM_SLEEP
|
#define DDI_SLEEP KM_SLEEP
|
||||||
#define ddi_log_sysevent(_a, _b, _c, _d, _e, _f, _g) \
|
#define ddi_log_sysevent(_a, _b, _c, _d, _e, _f, _g) \
|
||||||
|
|||||||
@@ -21,11 +21,19 @@
|
|||||||
* CDDL HEADER END
|
* CDDL HEADER END
|
||||||
*/
|
*/
|
||||||
/*
|
/*
|
||||||
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
|
* Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||||
* Use is subject to license terms.
|
* 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
|
#ifndef _SYS_ZONE_H
|
||||||
#define _LIBSPL_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 */
|
||||||
|
|||||||
Reference in New Issue
Block a user