Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jx0oH-0001Ks-2o for qemu-devel@nongnu.org; Fri, 16 May 2008 10:21:25 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jx0oE-0001Dy-Bn for qemu-devel@nongnu.org; Fri, 16 May 2008 10:21:24 -0400 Received: from [199.232.76.173] (port=43601 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jx0oE-0001DZ-2J for qemu-devel@nongnu.org; Fri, 16 May 2008 10:21:22 -0400 Received: from smtp02.citrix.com ([66.165.176.63]:5824) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jx0oD-0002vI-Nz for qemu-devel@nongnu.org; Fri, 16 May 2008 10:21:21 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18477.39006.84174.885932@mariner.uk.xensource.com> Date: Fri, 16 May 2008 15:21:18 +0100 Subject: Re: [Qemu-devel] Use of PATH_MAX In-Reply-To: <200805161502.10631.paul@codesourcery.com> References: <18477.36259.30442.280531@mariner.uk.xensource.com> <200805161502.10631.paul@codesourcery.com> From: Ian Jackson Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paul Brook Cc: Ian Jackson , qemu-devel@nongnu.org Paul Brook writes ("Re: [Qemu-devel] Use of PATH_MAX"): > On Friday 16 May 2008, Ian Jackson wrote: > > I think it would be better to invent a new name for the maximum path > > length supported by qemu's statically-sized buffers. This would > > replace both the uses of PATH_MAX (in block.c, linux-user/path.c, and > > block-vvfat.c) but also direct use of (eg) 1024 in many places. > > Better would be to not have the static length buffers in the first place. > That's the whole reason you're seeing this problem in the first place. I agree that it would be better to get rid of the static buffers. But at the moment I'm just trying to stop a tide of PATH_MAX nonsense enveloping the Xen semi-fork. I don't have time right now to make dozens of static buffers dynamically allocated. > And yes, I do have real situation where a 1024 character buffer isn't big > enough. If we changed the constant to have a different name, and used it consistently, you could at least recompile to get a bigger limit ... Ian.