Changeset View
Changeset View
Standalone View
Standalone View
cddl/contrib/opensolaris/lib/libzfs/common/libzfs_impl.h
Show All 16 Lines | |||||
* information: Portions Copyright [yyyy] [name of copyright owner] | * information: Portions Copyright [yyyy] [name of copyright owner] | ||||
* | * | ||||
* CDDL HEADER END | * CDDL HEADER END | ||||
*/ | */ | ||||
/* | /* | ||||
* Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. | * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. | ||||
* Copyright (c) 2011 Pawel Jakub Dawidek. All rights reserved. | * Copyright (c) 2011 Pawel Jakub Dawidek. All rights reserved. | ||||
* Copyright (c) 2011, 2016 by Delphix. All rights reserved. | * Copyright (c) 2011, 2017 by Delphix. All rights reserved. | ||||
* Copyright (c) 2013 Martin Matuska <mm@FreeBSD.org>. All rights reserved. | * Copyright (c) 2013 Martin Matuska <mm@FreeBSD.org>. All rights reserved. | ||||
*/ | */ | ||||
#ifndef _LIBZFS_IMPL_H | #ifndef _LIBZFS_IMPL_H | ||||
#define _LIBZFS_IMPL_H | #define _LIBZFS_IMPL_H | ||||
#include <sys/fs/zfs.h> | #include <sys/fs/zfs.h> | ||||
#include <sys/spa.h> | #include <sys/spa.h> | ||||
Show All 34 Lines | struct libzfs_handle { | ||||
uint64_t libzfs_ns_gen; | uint64_t libzfs_ns_gen; | ||||
int libzfs_desc_active; | int libzfs_desc_active; | ||||
char libzfs_action[1024]; | char libzfs_action[1024]; | ||||
char libzfs_desc[1024]; | char libzfs_desc[1024]; | ||||
int libzfs_printerr; | int libzfs_printerr; | ||||
int libzfs_storeerr; /* stuff error messages into buffer */ | int libzfs_storeerr; /* stuff error messages into buffer */ | ||||
void *libzfs_sharehdl; /* libshare handle */ | void *libzfs_sharehdl; /* libshare handle */ | ||||
boolean_t libzfs_mnttab_enable; | boolean_t libzfs_mnttab_enable; | ||||
/* | |||||
* We need a lock to handle the case where parallel mount | |||||
* threads are populating the mnttab cache simultaneously. The | |||||
* lock only protects the integrity of the avl tree, and does | |||||
* not protect the contents of the mnttab entries themselves. | |||||
*/ | |||||
pthread_mutex_t libzfs_mnttab_cache_lock; | |||||
avl_tree_t libzfs_mnttab_cache; | avl_tree_t libzfs_mnttab_cache; | ||||
int libzfs_pool_iter; | int libzfs_pool_iter; | ||||
libzfs_fru_t **libzfs_fru_hash; | libzfs_fru_t **libzfs_fru_hash; | ||||
libzfs_fru_t *libzfs_fru_list; | libzfs_fru_t *libzfs_fru_list; | ||||
char libzfs_chassis_id[256]; | char libzfs_chassis_id[256]; | ||||
boolean_t libzfs_prop_debug; | boolean_t libzfs_prop_debug; | ||||
}; | }; | ||||
▲ Show 20 Lines • Show All 138 Lines • Show Last 20 Lines |