[Drbd-dev] DRBD svn and 2.6.16

Joe Ammond joe.ammond at edwardjones.com
Tue Feb 14 22:09:17 CET 2006


I've been using the latest SVN code of DRBD under Xen-unstable
for the past couple of months with good results. However, the
Xen tree recently switched kernels to 2.6.16-rc2, which appears
to have introduced incompatibilities with DRBD. When compiling,
drbd_receiver.c fails:


[root at rc-xen0-04 drbd]# make 
    Calling toplevel makefile of kernel source tree, which I believe is
in
    KDIR=/lib/modules/2.6.16-rc2-xen/build

make -C /lib/modules/2.6.16-rc2-xen/build SUBDIRS=/root/drbd/trunk/drbd
modules
make[1]: Entering directory `/xen/xen-unstable.hg/linux-2.6.16-rc2-xen'
  CC [M]  /root/drbd/trunk/drbd/drbd_buildtag.o
  CC [M]  /root/drbd/trunk/drbd/drbd_receiver.o
/root/drbd/trunk/drbd/drbd_receiver.c: In function
‘drbd_setup_order_type’:
/root/drbd/trunk/drbd/drbd_receiver.c:1793: error: ‘QUEUE_ORDERED_FLUSH’
undeclared (first use in this function)
/root/drbd/trunk/drbd/drbd_receiver.c:1793: error: (Each undeclared
identifier is reported only once
/root/drbd/trunk/drbd/drbd_receiver.c:1793: error: for each function it
appears in.)
/root/drbd/trunk/drbd/drbd_receiver.c:1793: error: array index in
initializer not of integer type
/root/drbd/trunk/drbd/drbd_receiver.c:1793: error: (near initialization
for ‘order_txt’)
/root/drbd/trunk/drbd/drbd_receiver.c:1814: error: too few arguments to
function ‘blk_queue_ordered’
/root/drbd/trunk/drbd/drbd_receiver.c: In function
‘warn_if_differ_considerably’:
/root/drbd/trunk/drbd/drbd_receiver.c:1822: warning: ISO C90 forbids
mixed declarations and code
make[2]: *** [/root/drbd/trunk/drbd/drbd_receiver.o] Error 1
make[1]: *** [_module_/root/drbd/trunk/drbd] Error 2
make[1]: Leaving directory `/xen/xen-unstable.hg/linux-2.6.16-rc2-xen'
make: *** [kbuild] Error 2

>From the little debugging I've done, it appears to be related
to the I/O barriers changes. Before I dig into the code, are
there any patches already to support this?


ja.
-- 
Joe Ammond                                  joe.ammond at edwardjones.com
   



More information about the drbd-dev mailing list