[DRBD-user] two patches to make drbd-8.2.6 compile on linux-2.6.27-rc2 (and possibly linux-2.6.27)

Raoul Bhatia [IPAX] r.bhatia at ipax.at
Thu Aug 14 18:51:09 CEST 2008

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


i today tried to compile drbd-8.2.6 for linux-2.6.27-rc2 which showed
errors and warnings. as a result, i can provide patches for 3 out of 4
things that were obviously changed.

1) kernel changeset a8f18b909c0a3f22630846207035c8b84bb252b8 introduced
   a WARN() macro which collides with drbd's own:

> #define WARN(fmt, args...)  PRINTK(KERN_WARNING, fmt , ##args)

i simply renamed WARN to WARN_DRBD with
> find -type f -exec sed -i 's/WARN(/WARN_2(/g' {} \;

2) kernel changeset cc371e66e340f35eed8dc4651c7c18e754c7fb26 altered

3) kernel changeset c74c120a21d87b0b6925ada5830d8cac21e852d9 removed
   the proc_root export. this is also fixed in drbd cs

4) the last change which results in a warning is:

> /root/drbd-8.2.6/drbd/drbd_main.c: In function ‘drbd_new_device’:
> /root/drbd-8.2.6/drbd/drbd_main.c:2700: warning: passing argument 2 of ‘blk_queue_merge_bvec’ from incompatible pointer type

1) is fixed by drbd-8.2.6-linux-2.6.27-rc2_WARN.patch
2)+3) are fixed by drbd-8.2.6-linux-2.6.27-rc2_MISC.patch

unfortunatly, i do not know how to quickly fix 4) .

if these patches are incorrect, please shout. otherwise, i hope that
they will help some ppl out there who want to ride the (bleeding etch ;)

DI (FH) Raoul Bhatia M.Sc.          email.          r.bhatia at ipax.at
Technischer Leiter

IPAX - Aloy Bhatia Hava OEG         web.          http://www.ipax.at
Barawitzkagasse 10/2/2/11           email.            office at ipax.at
1190 Wien                           tel.               +43 1 3670030
FN 277995t HG Wien                  fax.            +43 1 3670030 15

More information about the drbd-user mailing list