mufs: fix va to tree object in super block

tags/0.1.0
S.J.R. van Schaik 8 years ago
parent 92a531b49f
commit 84c45ee64d
  1. 2
      source/fs/mufs/super.c

@ -35,7 +35,7 @@ int mufs_mount(struct mufs *fs, struct flash_dev *dev)
fs->log2_nentries = fs->dev->log2_block_size - ilog2(sizeof(uint32_t));
fs->root.fs = fs;
fs->root.va = offsetof(struct mufs_super, root) + 1;
fs->root.va = offsetof(struct mufs_super, root);
fs->root.file_size = super.root.file_size;
fs->root.root = super.root.root;
fs->root.depth = super.root.depth;

Loading…
Cancel
Save