Index: tools/mkext2.py
===================================================================
--- tools/mkext2.py	(revision 220210c87b40c13a3769a4d1b82fd6ee888d1324)
+++ tools/mkext2.py	(revision 86d0c263cc77c028ccff0c4d9651abe25a22b5c6)
@@ -507,4 +507,9 @@
 		self.pos = align_up(self.pos, bytes)
 	
+	def set_pos(self, pos):
+		"Set the current position"
+		
+		self.pos = pos
+	
 	def pack(self):
 		"Pack the inode structure and return the result"
@@ -581,4 +586,5 @@
 			if self.inode:
 				self.prev_entry.write(self.inode)
+				self.inode.set_pos(self.pos)
 	
 	def add(self, entry):
