From 65c4a4cb9d462c751f9bd9b1eb5fb24141a0a992 Mon Sep 17 00:00:00 2001 From: phk Date: Wed, 3 Apr 2002 20:39:27 +0000 Subject: [PATCH] Move the FFS parameter MAXFRAG from to Sponsored by: DARPA & NAI Labs. --- sys/sys/param.h | 1 - sys/ufs/ffs/ffs_tables.c | 1 + sys/ufs/ffs/fs.h | 2 ++ 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/sys/param.h b/sys/sys/param.h index bbc5901ad260..67779891f652 100644 --- a/sys/sys/param.h +++ b/sys/sys/param.h @@ -153,7 +153,6 @@ #define MAXBSIZE 65536 /* must be power of 2 */ #define BKVASIZE 16384 /* must be power of 2 */ #define BKVAMASK (BKVASIZE-1) -#define MAXFRAG 8 /* * MAXPATHLEN defines the longest permissible path length after expanding diff --git a/sys/ufs/ffs/ffs_tables.c b/sys/ufs/ffs/ffs_tables.c index 0256ee2244bd..1ffae90e4776 100644 --- a/sys/ufs/ffs/ffs_tables.c +++ b/sys/ufs/ffs/ffs_tables.c @@ -35,6 +35,7 @@ */ #include +#include /* * Bit patterns for identifying fragments in the block map diff --git a/sys/ufs/ffs/fs.h b/sys/ufs/ffs/fs.h index fc336aafd112..e81a06bf38ab 100644 --- a/sys/ufs/ffs/fs.h +++ b/sys/ufs/ffs/fs.h @@ -68,6 +68,8 @@ #define BBLOCK ((ufs_daddr_t)(0)) #define SBLOCK ((ufs_daddr_t)(BBLOCK + BBSIZE / DEV_BSIZE)) +/* Max number of fragments per block, this is not tweakable */ +#define MAXFRAG 8 /* * Addresses stored in inodes are capable of addressing fragments * of `blocks'. File system blocks of at most size MAXBSIZE can