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-users

Re: [Xen-users] Blktap2 in Debian Squeeze

To: xen-users <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] Blktap2 in Debian Squeeze
From: Muriel <mucawhite@xxxxxxxxx>
Date: Tue, 23 Aug 2011 20:02:41 +0200
Cc: Diego Dave <diego.dave.s@xxxxxxxxx>, Todd Deshane <todd.deshane@xxxxxxx>, Daniel Stodden <Daniel.Stodden@xxxxxxxxxx>
Delivery-date: Tue, 23 Aug 2011 11:05:44 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=WfDOGvPu8J72YM+/PwGhPQZ78aEl8F77ANh/reG4lAA=; b=Fkwn1HnCa+oCP3D/7119HfurNhlzuC5xS5Ar9T5fjkpwMl/uBbqNlxcu0qeYuPXIaS dl9P6D8oAgU6lhzrhe7YM2FWfkYf343ItcP6FjoVC69vfkasi9vSkHZFtveDn1i5xAcE 54OTOeNo22IL8hhXyL8QkZJYpRyXb+Q5WTb3k=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4E53DB6A.3040004@xxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <CAPbp-BkRAoztWjCKxXDBfPMoOdQsSTkbc1PYF4aHr1MJf8X2gQ@xxxxxxxxxxxxxx> <4E4CBAB5.5070308@xxxxxxxxxx> <CAPbp-B=ua5iS=xC6+xd+0a7QaeJS_=_=pKPp-2b2XE3_T1qcAQ@xxxxxxxxxxxxxx> <4E53DB6A.3040004@xxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Tue, Aug 23, 2011 at 6:55 PM, Mike McClurg <mike.mcclurg@xxxxxxxxxx> wrote:
> Ah, that's because we haven't build a 64bit blktap yet ;) We're only
> supporting 32bit for now, but you may be able to compile it yourself.
> Here are the source repositories you'll need:
>
> http://xenbits.xen.org/gitweb/?p=people/dstodden/blktap.git;a=summary
> http://xenbits.xen.org/gitweb/?p=people/dstodden/blktap-dkms.git;a=summary
> http://xenbits.xen.org/gitweb/?p=people/dstodden/blktap-debian.git;a=summary
>
> I can't promise this will work on 64bit.
>

I'm trying to compile blktap on a 64bit system (rhel based). I'm using
this repo:
https://github.com/jonludlam/blktap

What is the best / most updated?

On a 64bit there are a few of problems with various "long long int"
and other type conversion. These can be put in silence "-Wno-format"
but I guess that working on the code is the best choice.

In libvhdio.c this does not work:
1516         case F_SETLK:
1517         case F_SETLKW:
1518         case F_GETLK:
1519         {
1520                 struct flock *flk;
1521                 va_start(args, cmd);
1522                 flk = va_arg(args, struct flock *);
1523                 va_end(args);
1524                 LOG("%s 0x%x lock %p\n", __func__, real_fd, flk);
1525                 return _std_fcntl(real_fd, cmd, flk);
1526         }
1527
1528         case F_SETLK64:
1529         case F_SETLKW64:
1530         case F_GETLK64:
1531         {
1532                 struct flock64 *flk;
1533                 va_start(args, cmd);
1534                 flk = va_arg(args, struct flock64 *);
1535                 va_end(args);
1536                 LOG("%s 0x%x lock64 %p (%p)\n",
1537                     __func__, real_fd, flk, _std_fcntl);
1538                 return _std_fcntl(real_fd, cmd, flk);
1539         }

Fixed this i can compile but... God knows if it works :D

M.

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