[DRBD-user] DRBD 8.3 and kernel 3.10

AZ 9901 az9901 at gmail.com
Sat Aug 17 10:24:03 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.


Le 14 août 2013 à 21:42, AZ 9901 a écrit :
> 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' drbd/*.*
> 
> Then :
> ./configure ...
> make
> make install
> 
> It works with DRBD 8.3 and 8.4, they build on kernel 3.10.

Lars, Philipp, thank you for having made 8.4.4rc1 compatible with kernel 3.10 !
Hopefully you will do the same with 8.3.16 !

Thank you very much !

Best regards,

Ben




More information about the drbd-user mailing list