remove ext2_print_root
This commit is contained in:
parent
f8ea51441e
commit
9f71cabc9e
1 changed files with 4 additions and 3 deletions
|
|
@ -9,9 +9,9 @@ static int ext2_read_super(struct block_device *bdev, struct ext2_superblock *sb
|
||||||
if (!buf)
|
if (!buf)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
#ifdef KDEBUG
|
#ifdef KDEBUG
|
||||||
kprintf(LOG_DEBUG "Reading superblock from device %s, start_lba: %X\n", bdev->name, bdev->lba_start);
|
kprintf(LOG_DEBUG "Reading superblock from device %s, start_lba: %X\n", bdev->name, bdev->lba_start);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int ret = block_read(bdev, buf, 2, 2);
|
int ret = block_read(bdev, buf, 2, 2);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
|
|
@ -92,6 +92,7 @@ struct ext2fs *ext2_init_fs(struct block_device *bdev)
|
||||||
kfree(ret);
|
kfree(ret);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret->bdev = bdev;
|
ret->bdev = bdev;
|
||||||
ret->block_size = 1024 << ret->sb.log_block_size;
|
ret->block_size = 1024 << ret->sb.log_block_size;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue