From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K7b2U-0001T0-Qj for qemu-devel@nongnu.org; Sat, 14 Jun 2008 15:03:50 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K7b2S-0001S7-PJ for qemu-devel@nongnu.org; Sat, 14 Jun 2008 15:03:50 -0400 Received: from [199.232.76.173] (port=53241 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K7b2S-0001Rs-EG for qemu-devel@nongnu.org; Sat, 14 Jun 2008 15:03:48 -0400 Received: from ecfrec.frec.bull.fr ([129.183.4.8]:34010) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K7b2S-0005YJ-3w for qemu-devel@nongnu.org; Sat, 14 Jun 2008 15:03:48 -0400 Subject: Re: [Qemu-devel] [PATCH] Merge NBD client/server int qemu-nbd From: Laurent Vivier In-Reply-To: <4853FD68.9000308@qumranet.com> References: <1213370134.4833.29.camel@frecb07144> <4852B339.5090307@codemonkey.ws> <1213382394.3803.9.camel@frecb07144> <4853FD68.9000308@qumranet.com> Content-Type: text/plain; charset=utf-8 Date: Sat, 14 Jun 2008 21:03:43 +0200 Message-Id: <1213470224.3843.11.camel@frecb07144> Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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 Le samedi 14 juin 2008 =C3=A0 20:18 +0300, Avi Kivity a =C3=A9crit : > Laurent Vivier wrote: > > int timeout =3D 5; > > while ((fd =3D open(device, O_RDWR)) =3D=3D -1 && timeout--) > > sleep(1); > > > > Any suggestion ??? > > > > =20 >=20 > /sbin/udevsettle Why do you think udev is involved at this moment ? /dev/nbd0 is created when the module is loaded (thus before) and the partitions when the partition table is read (from within the open). Regards, Laurent --=20 ------------- Laurent.Vivier@bull.net --------------- "The best way to predict the future is to invent it." - Alan Kay