static int fbo_do_sync(struct fbo_state *state, uint8_t *sense)
{
	int rc;

	rc = fsync(state->fd);
	if (rc) {
		tcmu_err("sync failed: %m\n");
		return set_medium_error(sense, ASC_WRITE_ERROR);
	}

	return SAM_STAT_GOOD;
}
static int fbo_do_sync(struct fbo_state *state, uint8_t *sense)
{
	int rc;

	rc = fsync(state->fd);
	if (rc) {
		tcmu_err("sync failed: %m\n");
		return set_medium_error(sense, ASC_WRITE_ERROR);
	}

	return SAM_STAT_GOOD;
}