Re: [Qemu-devel] [PATCH V2 03/12] hw/9pfs: File system helper process for qemu 9p proxy FS

2011-11-16 Thread Stefan Hajnoczi
On Wed, Nov 16, 2011 at 8:51 AM, M. Mohan Kumar wrote: > Stefan Hajnoczi wrote: >>> +static int socket_write(int sockfd, void *buff, ssize_t size) >>> +{ >>> +    int retval; >>> + >>> +    do { >>> +        retval = write(sockfd, buff, size); >>> +    } while (retval<  0&&  errno == EINTR); >>> +

Re: [Qemu-devel] [PATCH V2 03/12] hw/9pfs: File system helper process for qemu 9p proxy FS

2011-11-16 Thread M. Mohan Kumar
Stefan Hajnoczi wrote: On Tue, Nov 15, 2011 at 11:57 AM, M. Mohan Kumar wrote: diff --git a/fsdev/virtfs-proxy-helper.c b/fsdev/virtfs-proxy-helper.c new file mode 100644 index 000..69daf7c --- /dev/null +++ b/fsdev/virtfs-proxy-helper.c @@ -0,0 +1,271 @@ +/* + * Helper for QEMU Proxy F

Re: [Qemu-devel] [PATCH V2 03/12] hw/9pfs: File system helper process for qemu 9p proxy FS

2011-11-15 Thread Stefan Hajnoczi
On Tue, Nov 15, 2011 at 11:57 AM, M. Mohan Kumar wrote: > diff --git a/fsdev/virtfs-proxy-helper.c b/fsdev/virtfs-proxy-helper.c > new file mode 100644 > index 000..69daf7c > --- /dev/null > +++ b/fsdev/virtfs-proxy-helper.c > @@ -0,0 +1,271 @@ > +/* > + * Helper for QEMU Proxy FS Driver > + *

[Qemu-devel] [PATCH V2 03/12] hw/9pfs: File system helper process for qemu 9p proxy FS

2011-11-15 Thread M. Mohan Kumar
Provide root privilege access to QEMU 9p proxy filesystem using socket communication. Proxy helper is started by root user as: ~ # virtfs-proxy-helper -f|--fd -p|--path Signed-off-by: M. Mohan Kumar --- Makefile|3 + configure | 19 +++ fsdev/virtfs