cfsd_logfile.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 cfsd_logfile class.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/* Copyright (c) 1994 by Sun Microsystems, Inc. */
#ifndef CFSD_LOGFILE
#define CFSD_LOGFILE
/* should come up with a standard dlog version size */
/* XXX should move these to <sys/fs/cachefs_dlog.h> */
#define LOGFILE_ENTRY_START sizeof (long)
#define CFS_DLOG_ENTRY_MINSIZE sizeof (long)
/* mmap info */
typedef struct mmap_info {
typedef struct cfsd_logfile_object {
int i_fid; /* fid of file */
int i_stat_nextcnt; /* number of next calls */
int i_stat_offcnt; /* number of offset calls */
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 i_maxmap; /* max amount referenced */
/* performs setup for the specified file */
/* returns ptr to a log file entry */
/* returns ptr to arbitrary point in log */
/* syncs the logfile to disk */
/* prints out various stats how the log file is used */
#endif /* CFSD_LOGFILE */