add -lminixfs with fs support routines
. move cache size heuristic from mfs there so mfs and ext2 can share it . add vfs credentials retrieving function, with backwards compatability from previous struct format, to be used by both ext2 and mfs . fix for ext2 - STATICINIT was fed no. of bytes instead of no. of elements, overallocating memory by a megabyte or two for the superblock
This commit is contained in:
@@ -70,7 +70,7 @@ PUBLIC int fs_readsuper()
|
||||
}
|
||||
|
||||
/* Fill in the super block. */
|
||||
STATICINIT(superblock, sizeof(struct super_block));
|
||||
STATICINIT(superblock, 1);
|
||||
if (!superblock)
|
||||
panic("Can't allocate memory for superblock.");
|
||||
superblock->s_dev = fs_dev; /* read_super() needs to know which dev */
|
||||
@@ -125,7 +125,10 @@ PUBLIC int fs_readsuper()
|
||||
}
|
||||
|
||||
|
||||
set_blocksize(superblock->s_block_size);
|
||||
set_blocksize(superblock->s_block_size,
|
||||
superblock->s_blocks_count,
|
||||
superblock->s_free_blocks_count,
|
||||
major(fs_dev));
|
||||
|
||||
/* Get the root inode of the mounted file system. */
|
||||
if ( (root_ip = get_inode(fs_dev, ROOT_INODE)) == NULL) {
|
||||
|
||||
Reference in New Issue
Block a user