summaryrefslogtreecommitdiffstats
path: root/sys/ufs
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-04-03 20:39:27 +0000
committerphk <phk@FreeBSD.org>2002-04-03 20:39:27 +0000
commit65c4a4cb9d462c751f9bd9b1eb5fb24141a0a992 (patch)
treeb0889af9d2f5e93c5075fdb34fa3ca188d7fd873 /sys/ufs
parent199f184a0ac4e0f393769ab6f3cb3be2b419db27 (diff)
downloadFreeBSD-src-65c4a4cb9d462c751f9bd9b1eb5fb24141a0a992.zip
FreeBSD-src-65c4a4cb9d462c751f9bd9b1eb5fb24141a0a992.tar.gz
Move the FFS parameter MAXFRAG from <sys/param.h> to <ufs/ffs/fs.h>
Sponsored by: DARPA & NAI Labs.
Diffstat (limited to 'sys/ufs')
-rw-r--r--sys/ufs/ffs/ffs_tables.c1
-rw-r--r--sys/ufs/ffs/fs.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/sys/ufs/ffs/ffs_tables.c b/sys/ufs/ffs/ffs_tables.c
index 0256ee2..1ffae90 100644
--- a/sys/ufs/ffs/ffs_tables.c
+++ b/sys/ufs/ffs/ffs_tables.c
@@ -35,6 +35,7 @@
*/
#include <sys/param.h>
+#include <ufs/ffs/fs.h>
/*
* Bit patterns for identifying fragments in the block map
diff --git a/sys/ufs/ffs/fs.h b/sys/ufs/ffs/fs.h
index fc336aa..e81a06b 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
OpenPOWER on IntegriCloud