a237e38e9161f0acd6451439d4a7dd597e66291dth * CDDL HEADER START
a237e38e9161f0acd6451439d4a7dd597e66291dth * The contents of this file are subject to the terms of the
a237e38e9161f0acd6451439d4a7dd597e66291dth * Common Development and Distribution License (the "License").
a237e38e9161f0acd6451439d4a7dd597e66291dth * You may not use this file except in compliance with the License.
a237e38e9161f0acd6451439d4a7dd597e66291dth * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
a237e38e9161f0acd6451439d4a7dd597e66291dth * See the License for the specific language governing permissions
a237e38e9161f0acd6451439d4a7dd597e66291dth * and limitations under the License.
a237e38e9161f0acd6451439d4a7dd597e66291dth * When distributing Covered Code, include this CDDL HEADER in each
a237e38e9161f0acd6451439d4a7dd597e66291dth * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
a237e38e9161f0acd6451439d4a7dd597e66291dth * If applicable, add the following below this CDDL HEADER, with the
a237e38e9161f0acd6451439d4a7dd597e66291dth * fields enclosed by brackets "[]" replaced with your own identifying
a237e38e9161f0acd6451439d4a7dd597e66291dth * information: Portions Copyright [yyyy] [name of copyright owner]
a237e38e9161f0acd6451439d4a7dd597e66291dth * CDDL HEADER END
a237e38e9161f0acd6451439d4a7dd597e66291dth * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
a237e38e9161f0acd6451439d4a7dd597e66291dth * Use is subject to license terms.
a237e38e9161f0acd6451439d4a7dd597e66291dth#pragma ident "%Z%%M% %I% %E% SMI"
a237e38e9161f0acd6451439d4a7dd597e66291dth * This header provides service for the sharefs module.
a237e38e9161f0acd6451439d4a7dd597e66291dthextern "C" {
a237e38e9161f0acd6451439d4a7dd597e66291dth * Lengths of strings.
a237e38e9161f0acd6451439d4a7dd597e66291dth * VFS data object
a237e38e9161f0acd6451439d4a7dd597e66291dth * The lock ordering whenever sharefs_lock and sharetab_lock both
a237e38e9161f0acd6451439d4a7dd597e66291dth * need to be held is: sharefs_lock and then sharetab_lock.
a237e38e9161f0acd6451439d4a7dd597e66291dthextern krwlock_t sharefs_lock; /* lock for the vnode ops */
a237e38e9161f0acd6451439d4a7dd597e66291dthextern krwlock_t sharetab_lock; /* lock for the cached sharetab */
a237e38e9161f0acd6451439d4a7dd597e66291dthextern size_t sharetab_size; /* How big is the sharetab file? */
a237e38e9161f0acd6451439d4a7dd597e66291dthextern timestruc_t sharetab_mtime; /* Last mod to sharetab */
a237e38e9161f0acd6451439d4a7dd597e66291dthextern uint_t sharetab_generation; /* Which copy is it? */
a237e38e9161f0acd6451439d4a7dd597e66291dth * Sharetab file
a237e38e9161f0acd6451439d4a7dd597e66291dth * Note that even though the sharetab code does not explictly
a237e38e9161f0acd6451439d4a7dd597e66291dth * use 'sharefs_file', it is required by GFS that the first
a237e38e9161f0acd6451439d4a7dd597e66291dth * field of the private data be a gfs_file_t.
a237e38e9161f0acd6451439d4a7dd597e66291dth timestruc_t sharefs_snap_time; /* When were we modded? */
a237e38e9161f0acd6451439d4a7dd597e66291dth * Some conversion macros:
a237e38e9161f0acd6451439d4a7dd597e66291dthextern void sharefs_data_init(void);
a237e38e9161f0acd6451439d4a7dd597e66291dthextern void sharefs_sharetab_init(void);
a237e38e9161f0acd6451439d4a7dd597e66291dth#endif /* !_SHAREFS_SHAREFS_H */