cfsd_maptbl.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (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
*/
/*
*
*
* Include file for the maptbl class.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/* Copyright (c) 1994 by Sun Microsystems, Inc. */
#ifndef CFSD_MAPTBL
#define CFSD_MAPTBL
typedef struct cfsd_maptbl_object {
int i_fid; /* fid of file */
int i_entries; /* number of entries */
int i_hash2mod; /* second hash module value */
int i_stat_filled; /* number of filled entries */
int i_stat_requests; /* number of lookups done */
int i_stat_probes; /* number of probes */
int i_stat_mapmove; /* number of times map moved */
long i_stat_mapdist; /* how far we move the map */
long i_pagesize; /* size of a page */
long i_maplen; /* amount to map */
int index);
/* performs setup for the specified file */
struct cfs_dlog_mapping_space *valuep);
/* prints out various stats about the hashing */
#endif /* CFSD_MAPTBL */