[DRBD-user] DRBD 8.3 and kernel 3.10

AZ 9901 az9901 at gmail.com
Wed Oct 9 20:43:01 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 29 sept. 2013 à 19:56, AZ 9901 a écrit :
> Le 17 août 2013 à 10:24, AZ 9901 a écrit :
>> 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 !
> 
> Phil, DRBD team,
> 
> I just tested 3.8.16, unfortunately it does not compile on 3.10 out of the box.
> However, with my modifications above it works.
> Could you please tell me if my 3 modifications above are the ones to do ?
> (no issue with them on 3.8.15 yet)

Any help on this ?

Many thanks !

Ben




More information about the drbd-user mailing list