[Drbd-dev] Fix for patch-kernl in scripts directory

Anthony D'Ambrosio anthony_d at computer.org
Fri Jul 31 22:33:33 CEST 2009


Hi,

I have been using DRBD for about 5 years now and think you folks have  
done some great work.  We recently have been working an a new base  
distribution of our OS and I ran into a problem while trying to build  
DRBD into a kernel.

We patch our kernel and I wanted to run some tests with the latest  
DRDB and the Linux 2.6.30 kernel.  We found an error trying to  
generate the patch file for the kernel:

root at appbuild2:/root/drbd-8.3.2 >make KDIR=/root/linux-2.6.30 kernel- 
patch
make -C drbd drbd_buildtag.c
make[1]: Entering directory `/root/drbd-8.3.2/drbd'
make[1]: Leaving directory `/root/drbd-8.3.2/drbd'
set -o errexit; \
         kbase=$(basename /root/linux-2.6.30); \
         d=patch-$kbase-drbd-8.3.2; \
         test -e $d && cp -fav --backup=numbered $d $d; \
         bash scripts/patch-kernel /root/linux-2.6.30 . > $d
cp: cannot stat `/root/drbd-8.3.2/drbd/lru_cache.h': No such file or  
directory
make: *** [kernel-patch] Error 1

After looking at the error, and an older version of DRBD it appears  
that the lru_cache.h file has moved.  I have created a patch for our  
build process:

root at appbuild2:/root/drbd-8.3.2 >cat ../patch-kernel_8.3.2.patch
97c97
<       lru_cache.c"
---
 >       lru_cache.c lru_cache.h"
113,114d112
< cp -a $DRBD/drbd/linux/lru_cache.h    $DRBD_SUB
<

Please tell me if you need more, or if I should supply this type of  
information in the future in some other manner.

Thanks for the excellent software - it works like a champ for us!

A. D'Ambrosio
BT Diamond IP


More information about the drbd-dev mailing list