Package: lustre-source
Version:  1.6.6-1
Severity: normal

For some Lustre clients, I would like to run a standard lenny with
a patchless Lustre installation.
I started with the Debian package lustre-source-1.6.6 from experimental,
but I get into two problems when compiling. I tried to fix these, and
the resulting modules do work. However I am not sure, whether 
especially the second fix is a good solution.

Here the details:

System: lenny, with 2.6.26-1-amd64 kernel
kernel source: linux-source-2.6.26 (2.6.26-13) 
Lustre: lustre-source 1.6.6-1 from experimental

Building lustre using "module-assistant build lustre"

1) problem 1 (llite_mmap.c):
  CC [M]  /usr/src/modules/lustre/lustre/llite/llite_mmap.o
  /usr/src/modules/lustre/lustre/llite/llite_mmap.c:626: error: unknown field 
'populate' specified in initializer
  /usr/src/modules/lustre/lustre/llite/llite_mmap.c:626: error: 'll_populate' 
undeclared here (not in a function)
  This looks like an easy thing to fix, just putting the populate field 
  after the next one. I'll attach a patch for this. If I fix it this way, 
compilation continues,
  but then stops here:

2) problem 2 (lprocfs_status.c):
  CC [M]  /usr/src/modules/lustre/lustre/obdclass/lprocfs_status.o
  /usr/src/modules/lustre/lustre/obdclass/lprocfs_status.c: In function 
  /usr/src/modules/lustre/lustre/obdclass/lprocfs_status.c:318: error: implicit 
declaration of function 'LPROCFS_WRITE_ENTRY'
  /usr/src/modules/lustre/lustre/obdclass/lprocfs_status.c:340: error: implicit 
declaration of function 'LPROCFS_WRITE_EXIT'

  Just to get it compiled, I have #define'd these to functions to (0) in 
  and then I get a lustre-modules-2.6.26-1-amd64_1.6.6_amd64.deb. The resulting 
  do work on a test system.

  It looks like the #ifdef HAVE_PROCFS_DELETED is not found upstream, any hint 
  we need this in Debian? 

Kind regards, Ralf

--- modules/lustre/lustre/llite/llite_mmap.c	2004-12-20 00:06:24.000000000 +0100
+++ modules/lustre/lustre/llite/	2009-01-22 15:40:03.000000000 +0100
@@ -623,10 +623,10 @@
 static struct vm_operations_struct ll_file_vm_ops = {
         .open           = ll_vm_open,
         .close          = ll_vm_close,
-        .populate       = ll_populate,
         .fault          = ll_fault,
+        .populate       = ll_populate,
         .nopage         = ll_nopage,
--- modules/lustre/lustre/include/lprocfs_status.h	2004-12-20 00:06:24.000000000 +0100
+++ modules/lustre/lustre/include/	2009-01-22 17:06:49.000000000 +0100
@@ -530,6 +530,8 @@
 #define LPROCFS_CHECK_DELETED(dp) (0)
+#define LPROCFS_WRITE_ENTRY() (0)
+#define LPROCFS_WRITE_EXIT() (0)
Pkg-lustre-maintainers mailing list

Reply via email to