From: Keir Fraser Subject: Re: [PATCH] 1/1 Better expose xenstore limits Date: Wed, 29 Apr 2009 19:01:38 +0100 Message-ID: References: <1241023383.5394.162.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1241023383.5394.162.camel@localhost.localdomain> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On 29/04/2009 17:43, "Tim Post" wrote: > Since xs.h already includes xs_wire, this patch duplicates those limits > as XS_PAYLOAD_MAX, XS_ABS_PATH_MAX and XS_REL_PATH_MAX. Moving these > would be a pain, but they really need to be advertised. > > Such limits should be obvious in the headers that people actually use > outside of the kernel, saving them from wondering what went wrong. > > Added comments direct people to xs_wire.h , in case those limits change. In terms of documentation, docs/misc/xenstore.txt already does a fine job. And I think a xen/public/... header is the right place for the limits, since it is a general documented protocol-level constraint, rather than a constraint of the particular client library (which is the scope of xs.h itself). -- Keir