@Override
	public int read(String path, Object fh, ByteBuffer buf, long offset) throws FuseException {
		FileHandle handle = (FileHandle)fh;
		//a workaround (for a bug?)
		if (handle == null)
			return Errno.EBADSLT;
		if (handle.hasClosed)
			return Errno.EBADSLT;
		if (handle.isEmptyFile)
			return 0;
		if (!handle.read)
			return Errno.EACCES;
		/*int read = */fileSystem.read(handle, buf, offset);
		return 0;
	}