Changeset fe61181 in mainline for uspace/lib/ext4/libext4_directory_index.c
- Timestamp:
- 2012-07-21T08:19:33Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0b293a6
- Parents:
- 34bc2fe
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ext4/libext4_directory_index.c
r34bc2fe rfe61181 318 318 /* Check unused flags */ 319 319 if (root->info.unused_flags != 0) { 320 EXT4FS_DBG("ERR: unused_flags = \%u", root->info.unused_flags);321 320 return EXT4_ERR_BAD_DX_DIR; 322 321 } … … 324 323 /* Check indirect levels */ 325 324 if (root->info.indirect_levels > 1) { 326 EXT4FS_DBG("ERR: indirect_levels = \%u", root->info.indirect_levels);327 325 return EXT4_ERR_BAD_DX_DIR; 328 326 } … … 897 895 /* Linux limitation */ 898 896 if ((levels > 0) && (root_limit == root_count)) { 899 EXT4FS_DBG("Directory index is full");900 897 return ENOSPC; 901 898 } … … 1039 1036 if (rc != EOK) { 1040 1037 block_put(root_block); 1041 EXT4FS_DBG("hinfo initialization error");1042 1038 return EXT4_ERR_BAD_DX_DIR; 1043 1039 } … … 1048 1044 rc = ext4_directory_dx_get_leaf(&hinfo, parent, root_block, &dx_block, dx_blocks); 1049 1045 if (rc != EOK) { 1050 EXT4FS_DBG("get leaf error");1051 1046 rc = EXT4_ERR_BAD_DX_DIR; 1052 1047 goto release_index; … … 1102 1097 rc = block_put(new_block); 1103 1098 if (rc != EOK) { 1104 EXT4FS_DBG("error writing new block");1105 1099 return rc; 1106 1100 } … … 1114 1108 rc = block_put(target_block); 1115 1109 if (rc != EOK) { 1116 EXT4FS_DBG("error writing target block");1117 1110 return rc; 1118 1111 } … … 1129 1122 rc = block_put(dx_it->block); 1130 1123 if (rc != EOK) { 1131 EXT4FS_DBG("error writing index block");1132 1124 return rc; 1133 1125 }
Note:
See TracChangeset
for help on using the changeset viewer.