Changeset cfff7a8f in mainline
- Timestamp:
- 2011-03-17T22:37:20Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- fcce9e1
- Parents:
- df22c36
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/minixfs/mfs_inode.c
rdf22c36 rcfff7a8f 11 11 block_t *b; 12 12 int i; 13 13 14 const int ino_off = inum % V1_INODES_PER_BLOCK; 14 15 const size_t ino_size = sizeof(struct mfs_inode); 15 16 … … 24 25 BLOCK_FLAGS_NONE); 25 26 26 memcpy(ino, ((uint8_t *) b->data) + in um* ino_size, ino_size);27 memcpy(ino, ((uint8_t *) b->data) + ino_off * ino_size, ino_size); 27 28 28 29 ino->i_mode = conv16(sbi->native, ino->i_mode); … … 59 60 sbi = instance->sbi; 60 61 62 const int ino_off = inum % V3_INODES_PER_BLOCK(sbi->block_size); 63 61 64 block_get(&b, instance->handle, 62 65 2 + inum / V3_INODES_PER_BLOCK(sbi->block_size), 63 66 BLOCK_FLAGS_NONE); 64 67 65 memcpy(ino, ((uint8_t *)b->data) + in um* ino_size, ino_size);68 memcpy(ino, ((uint8_t *)b->data) + ino_off * ino_size, ino_size); 66 69 67 70 ino->i_mode = conv16(sbi->native, ino->i_mode);
Note:
See TracChangeset
for help on using the changeset viewer.