[OpenAFS-devel] Generating a Linux 2.6-style .ko

Jeff Mahoney jeffm@suse.com
Thu, 27 May 2004 13:47:49 -0400


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Matthew Miller wrote:
| On Thu, May 27, 2004 at 12:21:50PM -0400, Asheesh Laroia wrote:
|
|>I tried building OpenAFS for Linux 2.6 from yesterday's CVS, and the
build
|>generated a pre-2.6-style .o module.
|>Is there any progress made on this yet, and for those working on it,
is it
|>possible that I contribute at all?
|
|
| I haven't gotten beyond that either. I've been corresponding with Chas
| Williams, the original developer of the 2.6 support, but haven't gotten
| anywhere. I believe he's working on Fedora Core 1 upgraded to the mainline
| 2.6.5 kernel; I'm using Fedora Core 2 and their released 2.6.5 kernel. I
| intend to try FC2 with the stock 2.6.5 kernel and see what I get. What
| distro/config are you using?
|

I've been working (separately) on porting OpenAFS 1.2.11 to Linux 2.6
for some time now - I have it using the kbuild infrastructure, which
will produce the .ko files as expected by the 2.6 Kernel.

My port is quite a bit different than that seen in 1.3.64; It's quite a
bit more invasive, as I've chosen to allow the kernel to use its own
heuristics for cache management. This means that it uses the in kernel
inode cache rather than OpenAFS's internal cache.

My patches are by no means complete, but they're getting pretty close.

I've posted them here:
ftp://ftp.suse.com/pub/people/jeffm/openafs/linux26/openafs-1.2.11-linux26.diff

Perhaps you can use the Makefile infrastructure used in them. Note that
the Linux kernel makefiles are a lot more picky than the stock openafs
Makefiles. A good deal of my patch was just to get it building.

- -Jeff

- --
Jeff Mahoney
SuSE Labs
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFAtinFLPWxlyuTD7IRAhiPAKCHUMSP6aDLxAps8lU0kt63ccoO1QCfTIsG
AaFgIg9OAOKK20lQE+F5wkc=
=Vcpj
-----END PGP SIGNATURE-----