9 struct fs
* current_root_fs
;
11 struct fs_type fs_types
[] = {
12 {tfs_mount
, tfs_get_blk_shift
},
16 struct fs
*fs_init(void)
18 struct fs
*fs
= malloc(sizeof(*fs
));
19 struct fs_type
*fs_type
;
21 printk("fs system initialiaztion...");
24 while (fs_type
->mount
) {
25 fs
->sb
= fs_type
->mount();
32 fs
->block_shift
= fs_type
->get_blk_shift(fs
->sb
);
38 fs
->root
= tfs_iget_root(fs
);
44 * ZERO the fd table, since we currently do not support process, we just have
45 * one set of fd table. So, init it here.
49 printk("\t\t%s\n", "[OK]");