summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/sys/param.h1
-rw-r--r--sys/ufs/ffs/ffs_tables.c1
-rw-r--r--sys/ufs/ffs/fs.h2
3 files changed, 3 insertions, 1 deletions
diff --git a/sys/sys/param.h b/sys/sys/param.h
index bbc5901..6777989 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 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