@Override
	public int flush(String path, Object fh) throws FuseException {
		FileHandle handle = (FileHandle)fh;
		if (handle == null)
			return Errno.EBADSLT;
		if (handle.hasClosed)
			return Errno.EBADSLT;
		
		//well... shouldn't happen, but it does happen...
		if (!handle.write)
			return 0;
			//return Errno.EACCES;
		try {
			fileSystem.flush(handle);
		} catch (DriveFullException e) {
			return Errno.ENOSPC;
		}
		return 0;
	}