dmu_objset.h revision 4ccbb6e737373468bb9dc1709618384cce4c9f92
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYS_DMU_OBJSET_H
#define _SYS_DMU_OBJSET_H
#pragma ident "%Z%%M% %I% %E% SMI"
#include <sys/zfs_context.h>
#ifdef __cplusplus
extern "C" {
#endif
struct dsl_dataset;
struct dmu_tx;
struct objset_impl;
typedef struct objset_phys {
sizeof (uint64_t)];
struct objset {
struct objset_impl *os;
int os_mode;
};
typedef struct objset_impl {
/* Immutable: */
struct dsl_dataset *os_dsl_dataset;
/* no lock needed: */
/* Protected by os_obj_lock */
/* Protected by os_lock */
/* stuff we store for the user */
void *os_user_ptr;
#define DMU_META_DNODE_OBJECT 0
/* called from zpl */
int dmu_objset_destroy(const char *name);
int flags);
/* called from dsl */
objset_impl_t **osip);
#ifdef __cplusplus
}
#endif
#endif /* _SYS_DMU_OBJSET_H */