Re: [Qemu-devel] [PATCH] sheepdog: add support for connecting to unix domain socket

2013-01-19 Thread MORITA Kazutaka
At Wed, 16 Jan 2013 15:21:09 +0100, Stefan Hajnoczi wrote: > > On Tue, Jan 15, 2013 at 11:12:40PM +0900, MORITA Kazutaka wrote: > > +static int set_nodelay(int fd) > > +{ > > +int opt = 1; > > +return setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, (char *)&opt, > > sizeof(opt)); > > +} > > + >

Re: [Qemu-devel] [PATCH] sheepdog: add support for connecting to unix domain socket

2013-01-16 Thread Stefan Hajnoczi
On Tue, Jan 15, 2013 at 11:12:40PM +0900, MORITA Kazutaka wrote: > +static int set_nodelay(int fd) > +{ > +int opt = 1; > +return setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, (char *)&opt, > sizeof(opt)); > +} > + Please split this into a separate patch that moves the function to util/osdep.c

[Qemu-devel] [PATCH] sheepdog: add support for connecting to unix domain socket

2013-01-15 Thread MORITA Kazutaka
This patch adds support for a unix domain socket for a connection between qemu and local sheepdog server. You can use the unix domain socket with the following syntax like NBD driver: $ qemu sheepdog:unix:: Signed-off-by: MORITA Kazutaka --- block/sheepdog.c | 153 ---