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
'lprocfs_remove':
/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
lprocfs_status.h,
and then I get a lustre-modules-2.6.26-1-amd64_1.6.6_amd64.deb. The resulting
modules
do work on a test system.
It looks like the #ifdef HAVE_PROCFS_DELETED is not found upstream, any hint
why
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/llite_mmap.c.new 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,
#ifdef HAVE_VM_OP_FAULT
.fault = ll_fault,
#else
+ .populate = ll_populate,
.nopage = ll_nopage,
#endif
};
--- modules/lustre/lustre/include/lprocfs_status.h 2004-12-20 00:06:24.000000000 +0100
+++ modules/lustre/lustre/include/lprocfs_status.h.new 2009-01-22 17:06:49.000000000 +0100
@@ -530,6 +530,8 @@
#define LPROCFS_ENTRY_AND_CHECK(dp) \
LPROCFS_ENTRY();
#define LPROCFS_CHECK_DELETED(dp) (0)
+#define LPROCFS_WRITE_ENTRY() (0)
+#define LPROCFS_WRITE_EXIT() (0)
#endif