Changeset 04be5a0 in mainline
- Timestamp:
- 2011-04-07T19:47:37Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 07dcec5
- Parents:
- f9329cf
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/minixfs/mfs_ops.c
rf9329cf r04be5a0 459 459 { 460 460 struct mfs_node *mnode = fsnode->data; 461 const struct mfs_ino_info *ino_i = mnode->ino_i;462 const struct mfs_instance *inst = mnode->instance;463 const struct mfs_sb_info *sbi = inst->sbi;464 uint32_t n_dentries = 0;465 461 466 462 *has_children = false; … … 470 466 471 467 struct mfs_dentry_info *d_info; 472 n_dentries = ino_i->i_size / sbi->dirsize;473 468 474 469 /* The first two dentries are always . and .. */ 475 assert(n_dentries >= 2);476 477 if (n_dentries == 2)478 goto out;479 480 470 int i = 2; 481 471 while (1) { … … 498 488 499 489 out: 500 501 if (n_dentries > 2 && !*has_children)502 printf(NAME ": Filesystem corruption detected\n");503 490 504 491 if (*has_children)
Note:
See TracChangeset
for help on using the changeset viewer.