Changeset 13ecdac9 in mainline
- Timestamp:
- 2011-05-30T20:00:24Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1affcdf3
- Parents:
- ff2e72e
- Location:
- uspace/srv/fs/minixfs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/minixfs/mfs_dentry.c
rff2e72e r13ecdac9 154 154 /*Search for an empty dentry*/ 155 155 156 for (i = 2; ; ++i) {156 for (i = 0; ; ++i) { 157 157 r = read_directory_entry(mnode, &d_info, i); 158 158 if (r != EOK) -
uspace/srv/fs/minixfs/mfs_ops.c
rff2e72e r13ecdac9 265 265 on_error(r, return r); 266 266 267 if (flags & L_DIRECTORY) {268 /*Not yet supported*/269 return ENOTSUP;270 }271 272 267 /*Alloc a new inode*/ 273 268 r = mfs_alloc_bit(inst, &inum, BMAP_INODE); … … 294 289 } 295 290 296 ino_i->i_mode = S_IFREG; 291 if (flags & L_DIRECTORY) 292 ino_i->i_mode = S_IFDIR; 293 else 294 ino_i->i_mode = S_IFREG; 295 297 296 ino_i->i_nlinks = 1; 298 297 ino_i->i_uid = 0; … … 527 526 528 527 int r = insert_dentry(parent, name, child->ino_i->index); 529 528 on_error(r, goto exit_error); 529 530 if (S_ISDIR(child->ino_i->i_mode)) { 531 r = insert_dentry(child, ".", child->ino_i->index); 532 on_error(r, goto exit_error); 533 r = insert_dentry(child, "..", parent->ino_i->index); 534 } 535 536 exit_error: 530 537 return r; 531 538 }
Note:
See TracChangeset
for help on using the changeset viewer.