[Drbd-dev] Fix for patch-kernl in scripts directory
anthony_d at computer.org
Fri Jul 31 22:33:33 CEST 2009
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-
make -C drbd drbd_buildtag.c
make: Entering directory `/root/drbd-8.3.2/drbd'
make: Leaving directory `/root/drbd-8.3.2/drbd'
set -o errexit; \
kbase=$(basename /root/linux-2.6.30); \
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
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
root at appbuild2:/root/drbd-8.3.2 >cat ../patch-kernel_8.3.2.patch
> lru_cache.c lru_cache.h"
< 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!
BT Diamond IP
More information about the drbd-dev