[BACK]Return to xfs_globals.c CVS log [TXT][DIR] Up to [Development] / linux-2.6-xfs / fs / xfs / linux-2.6

File: [Development] / linux-2.6-xfs / fs / xfs / linux-2.6 / xfs_globals.c (download)

Revision 1.12, Fri Jun 9 02:50:02 2000 UTC (17 years, 4 months ago) by kenmcd
Branch: MAIN
CVS Tags: GPL-ENCUMBRANCE
Changes since 1.11: +28 -12 lines

Updated copyright and license notices, ready for open source release
Merge of 2.3.99pre2-xfs:slinx:55821a by ananth.

/*
 * Copyright (c) 2000 Silicon Graphics, Inc.  All Rights Reserved.
 * 
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of version 2 of the GNU General Public License as
 * published by the Free Software Foundation.
 * 
 * This program is distributed in the hope that it would be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * 
 * Further, this software is distributed without any warranty that it is
 * free of the rightful claim of any third person regarding infringement
 * or the like.  Any license provided herein, whether implied or
 * otherwise, applies only to this software file.  Patent licenses, if
 * any, provided herein do not apply to combinations of this program with
 * other software, or any other product whatsoever.
 * 
 * You should have received a copy of the GNU General Public License along
 * with this program; if not, write the Free Software Foundation, Inc., 59
 * Temple Place - Suite 330, Boston MA 02111-1307, USA.
 * 
 * Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
 * Mountain View, CA  94043, or:
 * 
 * http://www.sgi.com 
 * 
 * For further information regarding this notice, see: 
 * 
 * http://oss.sgi.com/projects/GenInfo/SGIGPLNoticeExplan/
 */
/*
 *
 * $Header$
 * $Author$
 * $Id$
 *
 * $Log$
 * Revision 1.12  2000/03/29 01:45:59  kenmcd
 * Updated copyright and license notices, ready for open source release
 *
 * Revision 1.11  2000/03/25 01:29:53  nathans
 * Merge of 2.3.42-xfs:slinx:46428a by ananth.
 *
 *   remove unused include files.
 *
 * Revision 1.10  2000/03/25 01:15:49  lord
 * use linux security mechanisms
 * Merge of 2.3.42-xfs:slinx:46379a by ananth.
 *
 * Revision 1.9  2000/03/25 00:47:57  lord
 * Merge of 2.3.42-xfs:slinx:44783a by ananth.
 *
 *   remove vfssw
 *
 * Revision 1.8  2000/03/25 00:36:28  cattelan
 * Merge of 2.3.42-xfs:slinx:44186a by ananth.
 *
 *   Copied GPL from slinx-xfs tree.
 *
 * Revision 1.11  2000/03/20 07:37:34  nathans
 * remove unused include files.
 *
 * Revision 1.10  2000/03/18 22:51:26  lord
 * use linux security mechanisms
 *
 * Revision 1.8  2000/02/21 21:54:31  cattelan
 * Copied GPL from slinx-xfs tree.
 *
 * Revision 1.8  2000/02/21 03:16:16  kenmcd
 * Encumbrance review done.
 * Add copyright and license words consistent with GPL.
 * Refer to http://fsg.melbourne.sgi.com/reviews/ for details.
 *
 * Revision 1.7  1999/11/30 23:26:23  lord
 * remove lbolt definition, using jiffies
 *
 * Revision 1.6  1999/09/29 17:55:19  lord
 * Fill in var structure for buffer cache sizes.
 *
 * Revision 1.5  1999/09/03 00:40:44  mostek
 * A bunch more (physmem, maxdmasz, lbolt, ...
 *
 * Revision 1.3  1999/09/02 22:24:14  cattelan
 * No Message Supplied
 *
 * Revision 1.1  1999/09/01 00:35:47  mostek
 * Add some globals that came from systune. Systune doesn't exist
 * on Linux.
 *
 */

/*
 * This file contains globals needed by XFS that were normally defined
 * somewhere else in IRIX.
 */

#include <sys/types.h>
#include <sys/var.h>
#include <sys/vfs.h>
#include <linux/xfs_cred.h>

int    		xfs_refcache_percent = 100;
int		mac_enabled = 0;
int		acl_enabled = 0;
int		ncsize = 792;
int		nclrus = 0;
int		xpg4_sticky_dir = 1; /* see xfs_stickytest */
int		imon_enabled;
int		xfsd_pri = 0x5c;	/* priority of xfsd thread(s) */
uint64_t	xfs_panic_mask;		/* set to cause more panics */
int		xfs_nfs_io_units = 10;	/* Ignore for now. Affects NFS performance. */
struct var	v = {
		  512,	/* v_buf * Nbr of I/O buffers.                  */
		  8,	/* v_hbuf * Nbr of hash buffers to allocate.     */
		  /* v_maxdmaszi * Max dma unbroken dma transfer size. */
		};

dev_t           rootdev = NODEV;
int             restricted_chown = 0;
int     	scache_linemask = 0x1f;       /* second level cache line size mask */
int		imon_enabled;
prid_t		dfltprid;
long            physmem;
int		maxdmasz = 0x401;	/* Obviously needs to be set dynamically */
#ifdef SIM
time_t		jiffies;
#endif
struct ksa	ksa;
struct ksa      *ksaptr = &ksa;        /* ptr to kernel system activities buf*/