summaryrefslogtreecommitdiff
path: root/fs/ext4/dev.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ext4/dev.c')
-rw-r--r--fs/ext4/dev.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ext4/dev.c b/fs/ext4/dev.c
index 1596a92..464a67d 100644
--- a/fs/ext4/dev.c
+++ b/fs/ext4/dev.c
@@ -52,6 +52,7 @@ void ext4fs_set_blk_dev(block_dev_desc_t *rbdd, disk_partition_t *info)
part_info = info;
part_offset = info->start;
get_fs()->total_sect = (info->size * info->blksz) / SECTOR_SIZE;
+ get_fs()->dev_desc = rbdd;
}
int ext4fs_devread(int sector, int byte_offset, int byte_len, char *buf)