Ignore:
Timestamp:
2012-03-06T09:17:42Z (12 years ago)
Author:
Frantisek Princ <frantisek.princ@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2f2feadb
Parents:
2f619d5
Message:

fixed error codes handling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ext4/libext4_directory_index.c

    r2f619d5 r60b8b99  
    787787        }
    788788
    789 // TODO check rc handling
     789
     790
     791
    790792        rc = block_put(new_block);
    791793        if (rc != EOK) {
    792794                EXT4FS_DBG("error writing new block");
    793         }
    794 
     795                return rc;
     796        }
    795797
    796798release_target_index:
     
    801803        if (rc != EOK) {
    802804                EXT4FS_DBG("error writing target block");
    803 //              return rc;
     805                return rc;
    804806        }
    805807
    806808release_index:
     809
     810        if (rc != EOK) {
     811                rc2 = rc;
     812        }
     813
    807814        dx_it = dx_blocks;
    808815
     
    811818                if (rc != EOK) {
    812819                        EXT4FS_DBG("error writing index block");
    813 //                      return rc;
     820                        return rc;
    814821                }
    815822                dx_it++;
Note: See TracChangeset for help on using the changeset viewer.