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

On Tue, 2011-08-23 at 14:02 -0400, Muriel wrote:
> 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?

http://xenbits.xen.org/gitweb/?p=people/dstodden/blktap.git

presently recommended is xcp/volatile/autotools, to eventually be
xcp/next.

$ sh autogen.sh
$ ./configure
$ make
$ sudo make install

It's still missing some useful stuff from xen-unstable.hg/tools/blktap,
such as block-remus etc, but for vhd/aio etc. it should work fine.

It's sort of beta, beware. Report issues please.

Daniel

> 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