Index: uspace/lib/ext4/libext4_directory_index.c
===================================================================
--- uspace/lib/ext4/libext4_directory_index.c	(revision 2f619d578f87ad5cb686fc841447930573a0847a)
+++ uspace/lib/ext4/libext4_directory_index.c	(revision 60b8b993fe5035f23414983af1484acf31c7e717)
@@ -787,10 +787,12 @@
 	}
 
-// TODO check rc handling
+
+
+
 	rc = block_put(new_block);
 	if (rc != EOK) {
 		EXT4FS_DBG("error writing new block");
-	}
-
+		return rc;
+	}
 
 release_target_index:
@@ -801,8 +803,13 @@
 	if (rc != EOK) {
 		EXT4FS_DBG("error writing target block");
-//		return rc;
+		return rc;
 	}
 
 release_index:
+
+	if (rc != EOK) {
+		rc2 = rc;
+	}
+
 	dx_it = dx_blocks;
 
@@ -811,5 +818,5 @@
 		if (rc != EOK) {
 			EXT4FS_DBG("error writing index block");
-//			return rc;
+			return rc;
 		}
 		dx_it++;
