modifyUsedDirsCount(0, 1);  Ext2Entry rootEntry = new Ext2Entry(iNode,"/",Ext2Constants.EXT2_FT_DIR, this, null); ((Ext2Directory)rootEntry.getDirectory()).addINode(Ext2Constants.EXT2_ROOT_INO, ".",  Ext2Constants.EXT2_FT_DIR); ((Ext2Directory)rootEntry.getDirectory()).addINode(Ext2Constants.EXT2_ROOT_INO, "..", Ext2Constants.EXT2_FT_DIR); rootEntry.getDirectory().addDirectory("lost+found"); return rootEntry; }
synchronized (inodeCache) { inodeCache.put(new Integer(Ext2Constants.EXT2_ROOT_INO), iNode); }  modifyUsedDirsCount(0, 1);  Ext2Entry rootEntry = new Ext2Entry(iNode, "/", Ext2Constants.EXT2_FT_DIR, this, null); ((Ext2Directory) rootEntry.getDirectory()).addINode( Ext2Constants.EXT2_ROOT_INO, ".", Ext2Constants.EXT2_FT_DIR); ((Ext2Directory) rootEntry.getDirectory()).addINode( Ext2Constants.EXT2_ROOT_INO, "..", Ext2Constants.EXT2_FT_DIR); rootEntry.getDirectory().addDirectory("lost+found"); return rootEntry; }
	protected FSEntry buildRootEntry() throws IOException {		//a free inode has been found: create the inode and write it into the inode table					INodeTable iNodeTable = iNodeTables[0];		//byte[] iNodeData = new byte[INode.INODE_LENGTH];		int iNodeNr = Ext2Constants.EXT2_ROOT_INO;		INode iNode = new INode(this, new INodeDescriptor(iNodeTable, iNodeNr, 0, iNodeNr-1));		int rights = 0xFFFF & (Ext2Constants.EXT2_S_IRWXU | Ext2Constants.EXT2_S_IRWXG | Ext2Constants.EXT2_S_IRWXO);		iNode.create( Ext2Constants.EXT2_S_IFDIR, rights, 0, 0);				//trigger a write to disk		iNode.update();				//add the inode to the inode cache		synchronized(inodeCache) {			inodeCache.put(new Integer(Ext2Constants.EXT2_ROOT_INO), iNode);		}		modifyUsedDirsCount(0, 1);				Ext2Entry rootEntry = new Ext2Entry(iNode,"/",Ext2Constants.EXT2_FT_DIR, this, null);		((Ext2Directory)rootEntry.getDirectory()).addINode(Ext2Constants.EXT2_ROOT_INO, ".",  Ext2Constants.EXT2_FT_DIR);		((Ext2Directory)rootEntry.getDirectory()).addINode(Ext2Constants.EXT2_ROOT_INO, "..", Ext2Constants.EXT2_FT_DIR);		rootEntry.getDirectory().addDirectory("lost+found");		return rootEntry;	}