[DRBD-user] DRBD 8.3 and kernel 3.10

AZ 9901 az9901 at gmail.com
Wed Aug 14 21:42:26 CEST 2013

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

2013/8/14 AZ 9901 <az9901 at gmail.com>:
> DRBD 8.3.15 does not compile with kernel 3.10.
> Do you plan to release 8.3.16 (or a 8.3.15 patch) compatible with kernel 3.10 ?
> I already tried myself, I managed to compile it yesterday night, I had to :
> - change "PDE(inode)->data" to "PDE_DATA(inode)"
> - delete second parameter (node) from hlist_for_each_entry() calls and hlist_for_each_entry_safe() calls
> - rename random32() calls to prandom_u32()
> That's all.
> It seems to work, however I am not confident at all...

Here is what I did :
sed -i 's/PDE(inode)->data/PDE_DATA(inode)/g' drbd/*.*
sed -i 's/random32()/prandom_u32()/g' drbd/*.*
sed -i 's/hlist_for_each_entry\([^(]*\)(\([^,]*\),[^,]*,/hlist_for_each_entry\1(\2,/g'

Then :
./configure ...
make install

It works with DRBD 8.3 and 8.4, they build on kernel 3.10.

Lars, Philipp, I just saw that today you released 8.3.16rc1, thank you
very much !
Could you make 8.3.16 compliant with kernel 3.10 ?

Thank you again,

Best regards,


More information about the drbd-user mailing list