*
* S5DU -- System 5 RFS file system switch entry
*

%FILESYS

Prefix:		du			# prefix to functions
FSFlags:	FS_NOICACHE		# file sys flags in fsinfo
NotifyFlags:	NO_SEEK			# fs_notify flags in fsinfo
Funcs:		access closei fcntl freemap getdents init ioctl iput iread
Funcs:		itrunc iupdat mount notify openi readi statf update writei

%PARAM

*
* RFS parameters
*

RFS		1
NSRMOUNT	1
STIBSZ		8192
STOBSZ		8192
STIHBUF		(ST_0*4)
STOHBUF		(ST_0*4)
STNPRNT		(ST_0>>2)
NADVERTISE	25
MAXGDP		24
NRCVD		150
NRDUSER		250
NSNDD		100
HIST 		6
RFHEAP		3072
MINSERVE	3
MAXSERVE	6
RFS_VHIGH	1
RFS_VLOW	1

%CONFIG					# code added to conf.c for this filesys

#ifdef S5DU_0_FS
#include "sys/message.h"
#include "sys/adv.h"
#include "sys/nserve.h"
#include "sys/sema.h"
#include "sys/cirmgr.h"
#include "sys/comm.h"

struct	srmnt	srmount[NSRMOUNT];
int		nsrmount = {NSRMOUNT};

struct advertise advertise[NADVERTISE];
int	nadvertise ={ NADVERTISE };
struct rcvd	rcvd[NRCVD];
int	nrcvd ={ NRCVD };
struct sndd	sndd [NSNDD];
int	nsndd ={ NSNDD };
int	maxgdp = { MAXGDP };
struct gdp	gdp [MAXGDP];
int	minserve ={ MINSERVE };
int	maxserve ={ MAXSERVE };
int	nrduser ={ NRDUSER };
struct rd_user	rd_user[NRDUSER];
char	rfheap[RFHEAP];
int	rfsize ={ RFHEAP };
int	rfs_vhigh = { RFS_VHIGH };
int	rfs_vlow = { RFS_VLOW };
struct	response srv_rsps[MAXSERVE];		/* server response buffers */

/*
 * RFS cache parms
 * NREMOTE and NLOCAL default to one third of NBUF when set to zero.
 * Non-zero value overrides the default.
 */
#define RCACHETIME 10
#define NREMOTE	 0
#define NLOCAL   0

int	nremote  = { NREMOTE };
int	nlocal  ={ NLOCAL };
struct buf rhbuf[NHBUF];
int	nrhbuf  ={ NHBUF };
int	rhmask  ={ NHBUF-1 };
int	rc_time  ={ RCACHETIME };
#endif	/* S5DU_0_FS */
