Changeset a8c7a6d in mainline
- Timestamp:
- 2017-12-08T21:03:35Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- fed5a9b
- Parents:
- 6ad454f
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-08 06:17:36)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-08 21:03:35)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/cdfs/cdfs_ops.c
r6ad454f ra8c7a6d 566 566 } 567 567 568 static boolcdfs_readdir(cdfs_t *fs, fs_node_t *fs_node)568 static int cdfs_readdir(cdfs_t *fs, fs_node_t *fs_node) 569 569 { 570 570 cdfs_node_t *node = CDFS_NODE(fs_node); … … 572 572 573 573 if (node->processed) 574 return true;574 return EOK; 575 575 576 576 uint32_t blocks = node->size / BLOCK_SIZE; … … 582 582 int rc = block_get(&block, fs->service_id, node->lba + i, BLOCK_FLAGS_NONE); 583 583 if (rc != EOK) 584 return false;584 return rc; 585 585 586 586 cdfs_dir_t *dir; … … 616 616 int rc = create_node(&fn, fs, dentry_type, 617 617 (node->lba + i) * BLOCK_SIZE + offset); 618 if ((rc != EOK) || (fn == NULL)) 619 return false; 618 if (rc != EOK) 619 return rc; 620 621 assert(fn != NULL); 620 622 621 623 cdfs_node_t *cur = CDFS_NODE(fn); … … 626 628 dir->name_length, node->fs->enc, dentry_type); 627 629 if (name == NULL) 628 return false;630 return EIO; 629 631 630 632 // FIXME: check return value … … 641 643 642 644 node->processed = true; 643 return true;645 return EOK; 644 646 } 645 647
Note:
See TracChangeset
for help on using the changeset viewer.