Changeset 6088193 in mainline for uspace/srv/fs/ext4fs/ext4fs_ops.c
- Timestamp:
- 2011-11-10T19:59:51Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 27ca3a3
- Parents:
- b3d7277
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/ext4fs/ext4fs_ops.c
rb3d7277 r6088193 935 935 rc = ext4fs_node_get(&fn, service_id, index); 936 936 if (rc != EOK) { 937 EXT4FS_DBG("node get error"); 937 938 return rc; 938 939 } … … 942 943 ext4fs_node_put(fn); 943 944 async_answer_0(callid, rc); 945 EXT4FS_DBG("data write recv"); 944 946 return rc; 945 947 } … … 962 964 963 965 rc = ext4_filesystem_get_inode_data_block_index(fs, inode_ref->inode, iblock, &fblock); 966 if (rc != EOK) { 967 // TODO error 968 ext4fs_node_put(fn); 969 EXT4FS_DBG("error loading block addr"); 970 return rc; 971 } 964 972 965 973 if (fblock == 0) { 974 966 975 rc = ext4_bitmap_alloc_block(fs, inode_ref, &fblock); 967 976 if (rc != EOK) { 977 EXT4FS_DBG("allocation failed"); 968 978 ext4fs_node_put(fn); 969 979 async_answer_0(callid, rc); … … 980 990 rc = block_get(&write_block, service_id, fblock, flags); 981 991 if (rc != EOK) { 992 EXT4FS_DBG("error in loading block \%d", rc); 982 993 ext4fs_node_put(fn); 983 994 async_answer_0(callid, rc); … … 999 1010 rc = block_put(write_block); 1000 1011 if (rc != EOK) { 1012 EXT4FS_DBG("error in writing block \%d", rc); 1001 1013 ext4fs_node_put(fn); 1002 1014 return rc; … … 1019 1031 ext4fs_truncate(service_id_t service_id, fs_index_t index, aoff64_t new_size) 1020 1032 { 1021 EXT4FS_DBG("");1022 1033 fs_node_t *fn; 1023 1034 ext4fs_node_t *enode; … … 1112 1123 static int ext4fs_sync(service_id_t service_id, fs_index_t index) 1113 1124 { 1114 EXT4FS_DBG("");1115 1116 1125 int rc; 1117 1126 fs_node_t *fn;
Note:
See TracChangeset
for help on using the changeset viewer.