aboutsummaryrefslogtreecommitdiff
path: root/sys/ufs/ffs
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2002-04-03 20:39:27 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2002-04-03 20:39:27 +0000
commita463023d6d11f3fa38d614dd16a23c3ee94217f7 (patch)
treeb0889af9d2f5e93c5075fdb34fa3ca188d7fd873 /sys/ufs/ffs
parentc677a10e4865ff5d92e2c9906e08583b4c51fedd (diff)
downloadsrc-a463023d6d11f3fa38d614dd16a23c3ee94217f7.tar.gz
src-a463023d6d11f3fa38d614dd16a23c3ee94217f7.zip
Move the FFS parameter MAXFRAG from <sys/param.h> to <ufs/ffs/fs.h>
Sponsored by: DARPA & NAI Labs.
Notes
Notes: svn path=/head/; revision=93736
Diffstat (limited to 'sys/ufs/ffs')
-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 0256ee2244bd..1ffae90e4776 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 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