[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] Blktap2 in Debian Squeeze

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:

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


Xen-users mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.