[DRBD-user] DRBD 8.3 and kernel 3.10

AZ 9901 az9901 at gmail.com
Tue Nov 5 11:35:36 CET 2013

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


>>>> 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)

Phil, DRBD team,

Really no help with this ?

Once again, thank you very much !

Ben



More information about the drbd-user mailing list