WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH] libfsimage: zfs build fix

To: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] libfsimage: zfs build fix
From: Mark Johnson <johnson.nh@xxxxxxxxx>
Date: Thu, 15 Apr 2010 11:51:10 -0400
Cc: Christoph Egger <Christoph.Egger@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 15 Apr 2010 08:52:20 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:cc:content-type; bh=dwNKlIPef64C3hpJek4FTeYgnqTm3P8lAG+6noGN9Ak=; b=bUVrOVuWtKw2y3sfnMoFZCV4E7nC01c+aIC0pIC3CE0otu0TIl5lDTKB0+5PjDslYk it7AB9NZfcl8cyLtTw8ukl0BL8+wTesbznn72Xvl5OXh2JMDT+nJQBSDitMeQKF35O2T nOS0EjLhNbpUUnTtEOs2D6uiUt/PrBhYZxyzU=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=YkX05/SNgeoGfpSF+Ee6WrWjmBVw2QnJbgK0N4YQABlnopZpqtuY7w9fguQcHT9YwN STi4vuYtrrLtR0sz/EjTuY2q5rASiQDjettMfHo3eMk9dG+krpJAIFDbmYbf/cd25JSo fCoBzl9MABgIvqM1d/ZaJ+AYJBVztKaYPnafs=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <19399.7780.770769.81637@xxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <201004151205.27824.Christoph.Egger@xxxxxxx> <19399.7780.770769.81637@xxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Thu, Apr 15, 2010 at 10:10 AM, Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx> wrote:
> Christoph Egger writes ("[Xen-devel] [PATCH] libfsimage: zfs build fix"):
>> Attached patch makes libfsimage build again on NetBSD.

The fsimage zfs patch was changed around to make it simpler
to keep in sync with the grub changes.  fsys_zfs.c, etc are exact copies
of what's in grub  e.g.
    
http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/grub/grub-0.97/stage2/fsys_zfs.c

fsi_zfs.* are kludges to get the grub code to fit into libfsimage and
is the only code which is different from the grub code.

It would be easier to keep in sync if this would be continued.


>> uchar_t is not defined because both FSYS_ZFS and FSIMAGE
>> are defined at build time.

for this, I would suggest extending this in fsi_zfs.h

#ifdef  __linux__
typedef unsigned char   uchar_t;
#endif



>> Also fix warnings with ctype.
>
> The ctype problems are more than warnings - they would give undefined
> behaviour if high-bit-set characters are passed.

I didn't write that code and agree that it's pretty ugly :-).
I assume you talking about where the char is sign extended
or not? Just curious, what's the case that isspace() gives
a wrong answer here?




MRJ




>> Signed-off-by: Christoph Egger <Christoph.Egger@xxxxxxx>
>
> Acked-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel