Changeset a5bad72 in mainline
- Timestamp:
- 2011-06-26T10:08:38Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2527b1d5
- Parents:
- 38b7233
- Location:
- uspace/srv/fs/minixfs
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/minixfs/mfs_balloc.c
r38b7233 ra5bad72 85 85 b->dirty = true; 86 86 r = block_put(b); 87 mfsdebug("free index %u\n", idx); 87 88 88 89 out_err: … … 188 189 for (j = 0; j < chunk_bits; ++j) { 189 190 if (!(chunk & (1 << j))) { 190 mfsdebug("i = %d j = %d\n", i, j);191 191 r = i * chunk_bits + j; 192 192 chunk |= 1 << j; -
uspace/srv/fs/minixfs/mfs_dentry.c
r38b7233 ra5bad72 206 206 207 207 if (!empty_dentry_found) { 208 mfsdebug("inode grow\n");209 208 r = inode_grow(mnode, sbi->dirsize); 210 209 if (r != EOK) 211 210 return r; 212 211 213 mfsdebug("read dentry %d\n", i);214 212 r = read_directory_entry(mnode, &d_info, i); 215 213 if (r != EOK) … … 224 222 225 223 r = write_dentry(d_info); 226 mfsdebug("write inode\n");227 224 free(d_info); 228 225 -
uspace/srv/fs/minixfs/mfs_ops.c
r38b7233 ra5bad72 264 264 uint32_t inum; 265 265 266 mfsdebug("create_node()\n");267 268 266 r = mfs_instance_get(handle, &inst); 269 267 on_error(r, return r); … … 340 338 int r; 341 339 342 mfsdebug("mfs_match()\n");343 344 340 if (!S_ISDIR(ino_i->i_mode)) 345 341 return ENOTDIR; … … 522 518 struct mfs_sb_info *sbi = parent->instance->sbi; 523 519 524 mfsdebug("mfs_link() %d\n", (int) child->ino_i->index);525 526 520 if (str_size(name) > sbi->max_name_len) 527 521 return ENAMETOOLONG; … … 617 611 fs_node_t *fn; 618 612 619 mfsdebug("mfs_read()\n");620 621 613 rc = mfs_node_get(&fn, handle, index); 622 614 if (rc != EOK) { … … 657 649 if (d_info->d_inum) { 658 650 /*Dentry found!*/ 659 mfsdebug("DENTRY FOUND %s!!\n", d_info->d_name);660 651 goto found; 661 652 } … … 733 724 mfs_write(ipc_callid_t rid, ipc_call_t *request) 734 725 { 735 mfsdebug("mfs_write()\n");736 737 726 devmap_handle_t handle = (devmap_handle_t) IPC_GET_ARG1(*request); 738 727 fs_index_t index = (fs_index_t) IPC_GET_ARG2(*request); … … 850 839 int r; 851 840 841 mfsdebug("mfs_destroy_node %d\n", mnode->ino_i->index); 842 852 843 r = mfs_has_children(&has_children, fn); 853 844 on_error(r, return r); … … 875 866 fs_node_t *fn; 876 867 int r; 877 878 mfsdebug("mfs_truncate()\n");879 868 880 869 r = mfs_node_get(&fn, handle, index);
Note:
See TracChangeset
for help on using the changeset viewer.