Index: uspace/lib/ext4/include/ext4/filesystem.h
===================================================================
--- uspace/lib/ext4/include/ext4/filesystem.h	(revision 1433ecda9b732f3f185f902feb26826ec2496e03)
+++ uspace/lib/ext4/include/ext4/filesystem.h	(revision c8ea6eca1c41df9b67e9c83a3b830bb036e10da8)
@@ -1,3 +1,4 @@
 /*
+ * Copyright (c) 2018 Jiri Svoboda
  * Copyright (c) 2011 Martin Sucha
  * Copyright (c) 2012 Frantisek Princ
@@ -40,4 +41,5 @@
 
 extern errno_t ext4_filesystem_probe(service_id_t);
+extern errno_t ext4_filesystem_create(service_id_t);
 extern errno_t ext4_filesystem_open(ext4_instance_t *, service_id_t,
     enum cache_mode, aoff64_t *, ext4_filesystem_t **);
@@ -67,5 +69,5 @@
 uint32_t ext4_filesystem_bg_get_backup_blocks(ext4_block_group_ref_t *bg);
 uint32_t ext4_filesystem_bg_get_itable_size(ext4_superblock_t *sb,
-    ext4_block_group_ref_t *bg_ref);
+    uint32_t);
 
 #endif
Index: uspace/lib/ext4/include/ext4/ialloc.h
===================================================================
--- uspace/lib/ext4/include/ext4/ialloc.h	(revision 1433ecda9b732f3f185f902feb26826ec2496e03)
+++ uspace/lib/ext4/include/ext4/ialloc.h	(revision c8ea6eca1c41df9b67e9c83a3b830bb036e10da8)
@@ -1,3 +1,4 @@
 /*
+ * Copyright (c) 2018 Jiri Svoboda
  * Copyright (c) 2012 Frantisek Princ
  * All rights reserved.
@@ -38,4 +39,7 @@
 extern errno_t ext4_ialloc_free_inode(ext4_filesystem_t *, uint32_t, bool);
 extern errno_t ext4_ialloc_alloc_inode(ext4_filesystem_t *, uint32_t *, bool);
+extern errno_t ext4_ialloc_alloc_this_inode(ext4_filesystem_t *, uint32_t,
+    bool);
+
 
 #endif
Index: uspace/lib/ext4/include/ext4/superblock.h
===================================================================
--- uspace/lib/ext4/include/ext4/superblock.h	(revision 1433ecda9b732f3f185f902feb26826ec2496e03)
+++ uspace/lib/ext4/include/ext4/superblock.h	(revision c8ea6eca1c41df9b67e9c83a3b830bb036e10da8)
@@ -1,3 +1,4 @@
 /*
+ * Copyright (c) 2018 Jiri Svoboda
  * Copyright (c) 2011 Martin Sucha
  * Copyright (c) 2012 Frantisek Princ
@@ -37,4 +38,5 @@
 #include <block.h>
 #include <stdint.h>
+#include <uuid.h>
 #include "ext4/types.h"
 
@@ -113,6 +115,6 @@
     uint32_t);
 
-extern const uint8_t *ext4_superblock_get_uuid(ext4_superblock_t *);
-extern void ext4_superblock_set_uuid(ext4_superblock_t *, const uint8_t *);
+extern void ext4_superblock_get_uuid(ext4_superblock_t *, uuid_t *);
+extern void ext4_superblock_set_uuid(ext4_superblock_t *, uuid_t *);
 extern const char *ext4_superblock_get_volume_name(ext4_superblock_t *);
 extern void ext4_superblock_set_volume_name(ext4_superblock_t *, const char *);
@@ -162,4 +164,7 @@
 extern uint32_t ext4_superblock_get_inodes_in_group(ext4_superblock_t *,
     uint32_t);
+extern errno_t ext4_superblock_create(size_t, uint64_t, ext4_superblock_t **);
+extern uint32_t ext4_superblock_get_group_backup_blocks(ext4_superblock_t *,
+    uint32_t);
 
 #endif
Index: uspace/lib/ext4/include/ext4/types.h
===================================================================
--- uspace/lib/ext4/include/ext4/types.h	(revision 1433ecda9b732f3f185f902feb26826ec2496e03)
+++ uspace/lib/ext4/include/ext4/types.h	(revision c8ea6eca1c41df9b67e9c83a3b830bb036e10da8)
@@ -1,3 +1,4 @@
 /*
+ * Copyright (c) 2018 Jiri Svoboda
  * Copyright (c) 2011 Martin Sucha
  * Copyright (c) 2012 Frantisek Princ
@@ -143,4 +144,7 @@
 
 
+#define EXT4_GOOD_OLD_REV 0
+#define EXT4_DYNAMIC_REV 1
+
 #define EXT4_SUPERBLOCK_MAGIC   0xEF53
 #define EXT4_SUPERBLOCK_SIZE    1024
@@ -276,4 +280,5 @@
 #define EXT4_MAX_BLOCK_SIZE   65536  /* 64 KiB */
 #define EXT4_REV0_INODE_SIZE  128
+#define EXT4_REV0_FIRST_INO   11
 
 #define EXT4_INODE_BLOCK_SIZE  512
