Changeset 8b863a62 in mainline for uspace/srv/fs/tmpfs/tmpfs_ops.c
- Timestamp:
- 2014-04-16T17:14:06Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f857e8b
- Parents:
- dba3e2c (diff), 70b570c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/tmpfs/tmpfs_ops.c
rdba3e2c r8b863a62 259 259 tmpfs_node_t *parentp = TMPFS_NODE(pfn); 260 260 261 list_foreach(parentp->cs_list, lnk) { 262 tmpfs_dentry_t *dentryp; 263 dentryp = list_get_instance(lnk, tmpfs_dentry_t, link); 261 list_foreach(parentp->cs_list, link, tmpfs_dentry_t, dentryp) { 264 262 if (!str_cmp(dentryp->name, component)) { 265 263 *rfn = FS_NODE(dentryp->node); … … 365 363 366 364 /* Check for duplicit entries. */ 367 list_foreach(parentp->cs_list, lnk) { 368 dentryp = list_get_instance(lnk, tmpfs_dentry_t, link); 369 if (!str_cmp(dentryp->name, nm)) 365 list_foreach(parentp->cs_list, link, tmpfs_dentry_t, dp) { 366 if (!str_cmp(dp->name, nm)) 370 367 return EEXIST; 371 368 } … … 400 397 if (!parentp) 401 398 return EBUSY; 402 403 list_foreach(parentp->cs_list, l nk) {404 dentryp = list_get_instance(lnk, tmpfs_dentry_t, link);405 if (!str_cmp(dentryp->name, nm)) {399 400 list_foreach(parentp->cs_list, link, tmpfs_dentry_t, dp) { 401 if (!str_cmp(dp->name, nm)) { 402 dentryp = dp; 406 403 childp = dentryp->node; 407 404 assert(FS_NODE(childp) == cfn);
Note:
See TracChangeset
for help on using the changeset viewer.