hack to avoid firstdatazone overflow problem when no. of

inodes gets too large. real solution (computing firstdatazone
instead of storing it in the superblock) to follow on trunk.
This commit is contained in:
Ben Gras 2007-11-06 16:55:48 +00:00
parent 6ec8998639
commit 741f3678e9

View File

@ -33,6 +33,8 @@
#include <tools.h>
#include <dirent.h>
#define MAX_INODES (2*1024*1024)
#undef EXTERN
#define EXTERN /* get rid of EXTERN by making it null */
#include "../../servers/mfs/super.h"
@ -317,6 +319,11 @@ char *argv[];
simple = 1;
}
if(inodes > MAX_INODES) {
inodes = MAX_INODES;
fprintf(stderr, "capping no. of inodes to %lu.\n", inodes);
}
nrblocks = blocks;
nrinodes = inodes;