Changeset e666ddc in mainline
- Timestamp:
- 2011-04-09T15:35:40Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 668f1949
- Parents:
- e33100c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/minixfs/mfs_dentry.c
re33100c re666ddc 45 45 block_t *b; 46 46 47 mfsdebug("read_directory(%u)\n", index); 48 47 49 struct mfs_dentry_info *d_info = malloc(sizeof(*d_info)); 48 49 50 if (!d_info) 50 51 return NULL; … … 64 65 struct mfs3_dentry *d3; 65 66 66 d3 = b->data ;67 d3 = b->data + (dentry_off * MFS3_DIRSIZE); 67 68 d3 += dentry_off; 68 69 d_info->d_inum = conv32(sbi->native, d3->d_inum); … … 74 75 struct mfs_dentry *d; 75 76 76 d = b->data ;77 d += dentry_off;77 d = b->data + dentry_off * (longnames ? MFSL_DIRSIZE : 78 MFS_DIRSIZE); 78 79 d_info->d_inum = conv16(sbi->native, d->d_inum); 79 80 memcpy(d_info->d_name, d->d_name, namelen);
Note:
See TracChangeset
for help on using the changeset viewer.