[sheepdog] [PATCH v2 3/3] sheep: add SD_OP_SYNC_VDI and SD_OP_FLUSH_PEER for writeback cache semantics

Liu Yuan namei.unix at gmail.com
Wed Sep 5 05:47:29 CEST 2012


On 09/02/2012 10:34 AM, Hitoshi Mitake wrote:
> +int peer_flush(struct request *req)
> +{
> +	return sd_store->flush();
> +}

I think We'd better check it gateway_only mode at peer_flush(), store
driver should only concentrate on serving the requests.

Thanks,
Yuan

> +int default_flush(void)
> +{
> +	int fd;
> +
> +	if (sys->gateway_only)
> +		return SD_RES_SUCCESS;




More information about the sheepdog mailing list