Changeset 3f3e5b5 in mainline
- Timestamp:
- 2011-07-07T18:07:31Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 367d67fe
- Parents:
- b89281b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/minixfs/mfs_ops.c
rb89281b r3f3e5b5 539 539 r = mfs_has_children(&has_children, cfn); 540 540 on_error(r, return r); 541 541 542 if (has_children) 542 543 return ENOTEMPTY; … … 570 571 /* The first two dentries are always . and .. */ 571 572 unsigned i; 572 for (i = 0; i < mnode->ino_i->i_size / sbi->dirsize; ++i) {573 for (i = 2; i < mnode->ino_i->i_size / sbi->dirsize; ++i) { 573 574 r = read_directory_entry(mnode, &d_info, i); 574 575 on_error(r, return r); … … 623 624 struct mfs_sb_info *sbi = mnode->instance->sbi; 624 625 625 unsigned i; 626 for (i = pos; i < mnode->ino_i->i_size / sbi->dirsize; ++i) { 626 for (; pos < mnode->ino_i->i_size / sbi->dirsize; ++pos) { 627 627 rc = read_directory_entry(mnode, &d_info, pos); 628 628 on_error(rc, goto out_error); … … 632 632 goto found; 633 633 } 634 pos++;635 634 } 636 635
Note:
See TracChangeset
for help on using the changeset viewer.