From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:42930) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S11jF-0006Yv-UV for qemu-devel@nongnu.org; Fri, 24 Feb 2012 15:26:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S11jE-0002jE-UT for qemu-devel@nongnu.org; Fri, 24 Feb 2012 15:26:57 -0500 Received: from mx1.redhat.com ([209.132.183.28]:18841) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S11jE-0002j8-Mn for qemu-devel@nongnu.org; Fri, 24 Feb 2012 15:26:56 -0500 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q1OKQtx0017835 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 24 Feb 2012 15:26:55 -0500 Date: Fri, 24 Feb 2012 18:26:55 -0200 From: Luiz Capitulino Message-ID: <20120224182655.7594983c@doriath.home> In-Reply-To: <4F47E7A1.1020200@redhat.com> References: <1329930815-7995-1-git-send-email-fsimonce@redhat.com> <1330102144-14491-2-git-send-email-fsimonce@redhat.com> <20120224170143.78f55d3e@doriath.home> <4F47E7A1.1020200@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 2/2 v2] Add the blockdev-reopen and blockdev-migrate commands List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: kwolf@redhat.com, mtosatti@redhat.com, qemu-devel@nongnu.org, armbru@redhat.com, Federico Simoncelli , pbonzini@redhat.com On Fri, 24 Feb 2012 12:40:17 -0700 Eric Blake wrote: > On 02/24/2012 12:01 PM, Luiz Capitulino wrote: > > >> + BlockDriver *drv; > >> + int i, j, escape; > >> + char new_filename[2048], *filename; > > > > I'd use PATH_MAX for new_filename's size. > > PATH_MAX need not be defined (and on Hurd, it intentionally is not > defined); or might be so huge as to be useless. Aren't those extreme cases? PATH_MAX is a standard define and is used in QEMU in several places. If it's not good here, it shouldn't be good anywhere.