Index: uspace/srv/fs/ext4fs/Makefile
===================================================================
--- uspace/srv/fs/ext4fs/Makefile	(revision 1e65444c9acc63f6529592d1ff555f2ed53bff70)
+++ uspace/srv/fs/ext4fs/Makefile	(revision 2b9e14210ecf751ecd06bad4658e9fd6c886f672)
@@ -28,6 +28,6 @@
 
 USPACE_PREFIX = ../../..
-LIBS = $(LIBBLOCK_PREFIX)/libblock.a $(LIBFS_PREFIX)/libfs.a $(LIBEXT4_PREFIX)/libext4.a
-EXTRA_CFLAGS += -I$(LIBBLOCK_PREFIX) -I$(LIBFS_PREFIX) -I$(LIBEXT4_PREFIX)
+LIBS = $(LIBBLOCK_PREFIX)/libblock.a $(LIBFS_PREFIX)/libfs.a $(LIBEXT4_PREFIX)/libext4.a $(LIBPOSIX_PREFIX)/libposix.a 
+EXTRA_CFLAGS += -I$(LIBBLOCK_PREFIX) -I$(LIBFS_PREFIX) -I$(LIBEXT4_PREFIX) -I$(LIBPOSIX_PREFIX)
 BINARY = ext4fs
 
Index: uspace/srv/fs/ext4fs/ext4fs_ops.c
===================================================================
--- uspace/srv/fs/ext4fs/ext4fs_ops.c	(revision 1e65444c9acc63f6529592d1ff555f2ed53bff70)
+++ uspace/srv/fs/ext4fs/ext4fs_ops.c	(revision 2b9e14210ecf751ecd06bad4658e9fd6c886f672)
@@ -42,4 +42,5 @@
 #include <macros.h>
 #include <malloc.h>
+#include <string.h>
 #include <adt/hash_table.h>
 #include <ipc/loc.h>
@@ -216,11 +217,5 @@
 	}
 
-	/* Find length of component in bytes
-	 * TODO: check for library function call that does this
-	 */
-	component_size = 0;
-	while (*(component+component_size) != 0) {
-		component_size++;
-	}
+	component_size = strlen(component);
 
 	if (ext4_superblock_has_feature_compatible(fs->superblock, EXT4_FEATURE_COMPAT_DIR_INDEX) &&
@@ -395,5 +390,5 @@
 int ext4fs_node_open(fs_node_t *fn)
 {
-	// TODO stateless operation
+	// Stateless operation
 	return EOK;
 }
@@ -882,5 +877,5 @@
 
 	/* Check for sparse file
-	 * If ext2_filesystem_get_inode_data_block_index returned
+	 * If ext4_filesystem_get_inode_data_block_index returned
 	 * fs_block == 0, it means that the given block is not allocated for the
 	 * file and we need to return a buffer of zeros
@@ -964,6 +959,4 @@
 	}
 
-//	EXT4FS_DBG("bytes == \%u", bytes);
-
 	iblock =  pos / block_size;
 
@@ -971,5 +964,4 @@
 
 	if (fblock == 0) {
-//		EXT4FS_DBG("Allocate block !!!");
 		rc =  ext4_bitmap_alloc_block(fs, inode_ref, &fblock);
 		if (rc != EOK) {
@@ -984,5 +976,4 @@
 		flags = BLOCK_FLAGS_NOREAD;
 
-//		EXT4FS_DBG("block \%u allocated", fblock);
 	}
 
@@ -995,5 +986,4 @@
 
 	if (flags == BLOCK_FLAGS_NOREAD) {
-//		EXT4FS_DBG("fill block with zeros");
 		memset(write_block->data, 0, block_size);
 	}
@@ -1012,6 +1002,4 @@
 		return rc;
 	}
-
-//	EXT4FS_DBG("writing finished");
 
 	old_inode_size = ext4_inode_get_size(fs->superblock, inode_ref->inode);
@@ -1109,5 +1097,4 @@
 static int ext4fs_close(service_id_t service_id, fs_index_t index)
 {
-	// TODO
 	return EOK;
 }
@@ -1155,3 +1142,3 @@
 /**
  * @}
- */ 
+ */
