Re: loop-AES and Suse 11.1

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

Paul Hilton wrote:
> I cannot get loop-AES (3.2e) to work with Suse 11.1 (Linux-
> <linux/bio.h> seems to have a non structure for bio, which
> doesn't contain bi_hw_front_size (or any other bi_hw _* members).
> so loop.c won't compile.

My guess is that Suse included some 2.6.28-rc patches in their kernel. Those
bi_hw_* vanished in mainline 2.6.28-rc.

I tried to look at kernel-source-, which I found at , but the
rpm version that came with the distro that I am using refuses to install it.
I see this error message:

error: unpacking of archive failed: cpio: Bad magic

As of this writing, I still haven't seen what is inside the .rpm file, and I
don't know what version of rpm will open it. :(

Can you, or someone else, post a bzip2 compressed diff of -> Suse in some place? It is faster that way, as I don't
plan to sort out the rpm mess today.

> Is this something I can easily fix?

Loop code in loop-AES-v3.2e adapts to different bio struct on 2.6.28 kernel
and later. What happens if you change those version dependent #if statements
to enable the new code on 2.6.27 kernel? You can do this by changing 0x2061c
constants to 0x2061b . Something like this:

    sed -i -e 's/0x2061c/0x2061b/' loop.c-2.6.patched

But that is likely to fail, because 2.6.27 -> 2.6.28 changes involved other
changes to block layer interfaces.

Jari Ruusu  1024R/3A220F51 5B 4B F9 BB D3 3F 52 E9  DB 1D EB E3 24 0E A9 DD

Linux-crypto:  cryptography in and on the Linux system

[Index of Archives]     [Kernel]     [Linux Crypto]     [Gnu Crypto]     [Gnu Classpath]     [Netfilter]     [Bugtraq]