Hi LVM friends, I have problems with the following scenario: - I use SuSE linux 7.1 (I know, this might be a bit old, but I follow the rule "never touch a running system") with kernel 2.4.16 and lvm 1.0.7 - Since SuSE rolled out the latest kernel for 7.1 and I would like to keep my OS up to date I installed the 2.4.18 kernel source from SuSE on my machine - I tried to patch the kernel with the LVM 1.0.7, so I executed exactly the steps written in INSTALL and PATCH/README. Everything was ok - Then I configured the rest of the kernel and tried to compile. But after a while, when it was compiling the LVM stuff, it stopped compiling with the following message: gcc -D__KERNEL__ -I/usr/src/linux-2.4.18.SuSE/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -DKBUILD_BASENAME=lvm -c -o lvm.o lvm.c gcc -D__KERNEL__ -I/usr/src/linux-2.4.18.SuSE/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -DKBUILD_BASENAME=lvm_snap -c -o lvm-snap.o lvm-snap.c lvm-snap.c: In function `lvm_snapshot_COW': lvm-snap.c:365: structure has no member named `blocks' make[3]: *** [lvm-snap.o] Error 1 make[3]: Leaving directory `/usr/src/linux-2.4.18.SuSE/drivers/md' make[2]: *** [first_rule] Error 2 make[2]: Leaving directory `/usr/src/linux-2.4.18.SuSE/drivers/md' make[1]: *** [_subdir_md] Error 2 make[1]: Leaving directory `/usr/src/linux-2.4.18.SuSE/drivers' make: *** [_dir_drivers] Error 2 Afterwards I looked into the patch file, and into the lvm-snap.c at the given position, line 365. There is the reference to the "blocks" variable of the iobuf structure. This iobuf structure is defined in the /usr/src/linux/include/linux/iobuf.h header file. But this header file is completly different in the source of the 2.4.18 kernel than in the source of the 2.4.16 kernel, where the patch and compiling were ok. Do you have any idea what can I do to get it compiled? I attach the lvm patch file generated by make and the iobuf.h file for both versions 2.4.16 and 2.4.18. Hope to hear from you soon, and thanks in advance Krisztian
Attachment:
iobuf.h.2.4.16
Description: Binary data
Attachment:
iobuf.h.2.4.18
Description: Binary data
Attachment:
lvm-1.0.7-2.4.18.patch
Description: Binary data