Changeset 8b86ed26 in mainline
- Timestamp:
- 2011-03-18T19:44:01Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 44c0f5b
- Parents:
- fcce9e1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/minixfs/mfs_inode.c
rfcce9e1 r8b86ed26 1 1 #include <stdlib.h> 2 #include <assert.h> 2 3 #include <mem.h> 3 4 #include "mfs.h" … … 21 22 22 23 sbi = instance->sbi; 24 assert(sbi); 23 25 24 block_get(&b, instance->handle, 2 + inum / V1_INODES_PER_BLOCK, 26 const int itable_off = 2 + sbi->ibmap_blocks + sbi->zbmap_blocks; 27 28 block_get(&b, instance->handle, itable_off + inum / V1_INODES_PER_BLOCK, 25 29 BLOCK_FLAGS_NONE); 26 30 … … 59 63 60 64 sbi = instance->sbi; 65 assert(sbi); 61 66 67 const int itable_off = 2 + sbi->ibmap_blocks + sbi->zbmap_blocks; 62 68 const int ino_off = inum % V3_INODES_PER_BLOCK(sbi->block_size); 63 69 64 70 block_get(&b, instance->handle, 65 2+ inum / V3_INODES_PER_BLOCK(sbi->block_size),66 71 itable_off + inum / V3_INODES_PER_BLOCK(sbi->block_size), 72 BLOCK_FLAGS_NONE); 67 73 68 74 memcpy(ino, ((uint8_t *)b->data) + ino_off * ino_size, ino_size);
Note:
See TracChangeset
for help on using the changeset viewer.