Index: uspace/lib/ext2/libext2_filesystem.c
===================================================================
--- uspace/lib/ext2/libext2_filesystem.c	(revision c3f95d86d42c889ae39c8bc299b33beb8dbc4302)
+++ uspace/lib/ext2/libext2_filesystem.c	(revision 6f50bb095bd3b8cb8a67db1a9fc022da26e388c0)
@@ -297,4 +297,6 @@
  * of the given inode is located.
  * 
+ * @param fblock the number of filesystem block, or 0 if no such block is allocated yet
+ * 
  * @return 		EOK on success or negative error code on failure
  */
@@ -315,7 +317,4 @@
 	if (iblock < EXT2_INODE_DIRECT_BLOCKS) {
 		current_block = ext2_inode_get_direct_block(inode, (uint32_t)iblock);
-		if (current_block == 0) {
-			return EIO;
-		}
 		*fblock = current_block;
 		return EOK;
@@ -365,5 +364,6 @@
 		
 		if (current_block == 0) {
-			return EIO;
+			*fblock = 0;
+			return EOK;
 		}
 		
