From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KdRYx-0001Bs-SV for qemu-devel@nongnu.org; Wed, 10 Sep 2008 11:25:00 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KdRYw-0001AS-Li for qemu-devel@nongnu.org; Wed, 10 Sep 2008 11:24:59 -0400 Received: from [199.232.76.173] (port=36228 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KdRYw-0001AG-D6 for qemu-devel@nongnu.org; Wed, 10 Sep 2008 11:24:58 -0400 Received: from ag-out-0708.google.com ([72.14.246.242]:36819) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KdRYw-0003VM-1v for qemu-devel@nongnu.org; Wed, 10 Sep 2008 11:24:58 -0400 Received: by ag-out-0708.google.com with SMTP id 31so7095131agc.5 for ; Wed, 10 Sep 2008 08:24:57 -0700 (PDT) Message-ID: <48C7E697.3050805@codemonkey.ws> Date: Wed, 10 Sep 2008 10:24:07 -0500 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH] qemu-nbd: inetd support References: <1220866212.4147.15.camel@frecb07144> In-Reply-To: <1220866212.4147.15.camel@frecb07144> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Laurent Vivier wrote: > This patch allows to put qemu-nbd in inetd.conf by using stdin/stdout > instead of a socket. > > This behavior is enabled by specifying "--port=0". > That's kind of non-intuitive. Why not just add a --inetd option or a flag that explicitly means read from stdio? Regards, Anthony Liguori > example: > > # add in /etc/services.conf > > nbd 1024/tcp > > # add in /etc/inetd.conf > > nbd stream tcp nowait root /usr/local/bin/qemu-nbd /usr/local/bin/qemu-nbd --nocache --read-only --port 0 /ISO/ubuntu-7.10-desktop-amd64.iso > > Signed-off-by: Laurent Vivier >