public synchronized FSEntry createFileEntry(String name) throws IOException {
public FSEntry createFileEntry(String name) throws IOException {
	public synchronized FSEntry createFileEntry(String name) throws IOException {		if(!canWrite())			throw new IOException("Filesystem or directory is mounted read-only!");		//create a new iNode for the file		//TODO: access rights, file type, UID and GID should be passed through the FSDirectory interface		INode newINode;		Ext2DirectoryRecord dr;		Ext2FileSystem fs = (Ext2FileSystem) getFileSystem();				try{			int rights = 0xFFFF & (Ext2Constants.EXT2_S_IRWXU | Ext2Constants.EXT2_S_IRWXG | Ext2Constants.EXT2_S_IRWXO);			newINode = fs.createINode((int)iNode.getGroup(), Ext2Constants.EXT2_S_IFREG, rights, 0, 0);						dr = new Ext2DirectoryRecord(fs, newINode.getINodeNr(), Ext2Constants.EXT2_FT_REG_FILE, name);			addDirectoryRecord(dr);						newINode.setLinksCount( newINode.getLinksCount()+1 );			// update the directory inode			iNode.update();		}catch(FileSystemException fse) {			throw new IOException(fse);		}				return new Ext2Entry(newINode, name, Ext2Constants.EXT2_FT_REG_FILE, fs, this); 	}