diff options
Diffstat (limited to 'src/kernel/fs/ext2/ext2.c')
-rw-r--r-- | src/kernel/fs/ext2/ext2.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/kernel/fs/ext2/ext2.c b/src/kernel/fs/ext2/ext2.c index 5fcc929..b14d726 100644 --- a/src/kernel/fs/ext2/ext2.c +++ b/src/kernel/fs/ext2/ext2.c @@ -765,6 +765,7 @@ void ext2_init(char *device_path, char *mountpoint) ext2fs->sb = kmalloc(SUPERBLOCK_SIZE); ext2fs->block_size = 1024; read_disk_block(ext2fs, 1, (void *)ext2fs->sb); + log("%x", ext2fs->sb->ext2_magic); ext2fs->block_size = (1024 << ext2fs->sb->log2block_size); ext2fs->blocks_per_group = ext2fs->sb->blocks_per_group; ext2fs->inodes_per_group = ext2fs->sb->inodes_per_group; @@ -786,4 +787,4 @@ void ext2_init(char *device_path, char *mountpoint) inode_t *root_inode = kcalloc(sizeof(inode_t), 1); read_inode_metadata(ext2fs, root_inode, ROOT_INODE_NUMBER); vfs_mount(mountpoint, get_ext2_root(ext2fs, root_inode)); -}
\ No newline at end of file +} |