inodes gets too large. real solution (computing firstdatazone
instead of storing it in the superblock) to follow on trunk.
#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"
simple = 1;
}
+ if(inodes > MAX_INODES) {
+ inodes = MAX_INODES;
+ fprintf(stderr, "capping no. of inodes to %lu.\n", inodes);
+ }
+
nrblocks = blocks;
nrinodes = inodes;