Re: [Qemu-devel] A Patch to enable qemu-nbd run as an inetd service

2014-10-27 Thread Jun Sheng
Hi, Since errx is used everywhere in qemu-nbd.c, I suggest that I follow this convention in submitting my patch. On Thu, Oct 23, 2014 at 4:48 AM, Eric Blake wrote: > On 10/22/2014 12:54 PM, Jun Sheng wrote: >> From: Chaos Eternal >> >> >> run qemu-nbd as an inetd service has some benefits >> *

Re: [Qemu-devel] A Patch to enable qemu-nbd run as an inetd service

2014-10-22 Thread Eric Blake
On 10/22/2014 12:54 PM, Jun Sheng wrote: > From: Chaos Eternal > > > run qemu-nbd as an inetd service has some benefits > * more scriptable, such as serve multiple images to different clients > on one ip/port > * access control using tcpd > > @@ -363,7 +365,13 @@ static void nbd_accept(void *o

[Qemu-devel] A Patch to enable qemu-nbd run as an inetd service

2014-10-22 Thread Jun Sheng
From: Chaos Eternal run qemu-nbd as an inetd service has some benefits * more scriptable, such as serve multiple images to different clients on one ip/port * access control using tcpd simple usage: #!/bin/sh # qemu-nbd wrapper, select image file according to client ip address IMG_FILE=`sed -n "

Re: [Qemu-devel] A Patch to enable qemu-nbd run as an inetd service

2014-10-22 Thread Eric Blake
On 10/22/2014 12:41 AM, Jun Sheng wrote: > run qemu-nbd as an inetd service has some benefits > * more scriptable, such as serve multiple images to different clients > on one ip/port > * access control using tcpd > > simple usage: > #!/bin/sh > # qemu-nbd wrapper, select image file according to cl

[Qemu-devel] A Patch to enable qemu-nbd run as an inetd service

2014-10-22 Thread Jun Sheng
run qemu-nbd as an inetd service has some benefits * more scriptable, such as serve multiple images to different clients on one ip/port * access control using tcpd simple usage: #!/bin/sh # qemu-nbd wrapper, select image file according to client ip address IMG_FILE=`sed -n "s/$REMOTE_HOST //p" /pa