On 27 February 2013 12:04, Iustin Pop <
ius...@google.com> wrote:
> On Wed, Feb 27, 2013 at 11:22:38AM +0000, Damien Churchill wrote:
>> Hi,
>>
>> I've been having a look at adding support for drbd 8.4 since that's
>> what is now included in the current mainline kernel. I wanted to check
>> no one else was implementing this before doing it myself.
>>
>> If no one else is working on this then I was wondering what the best
>> way to implement it would be? Options as far as I can see would be
>> either: create a new subclass of bdev.DRBD8 and then override all the
>> methods where the syntax of the command has changed or stick in a
>> bunch of if statements switching the syntax in the current bdev.DRBD8
>> class. The former seems cleaner to me, but I'm a bit unsure how you
>> would select the correct class?
>
> Hi Damien,
>
> We're planning to work on supporting both drbd 9 and 8.4 with a new DRBD
> template. This would need to actually be specified at instance creation
> time.
>
> I believe the same approach should be taken even if only 8.4 is
> supported; as you mention, it's cleaner.
>
classes are accessed down the bottom of the bdev module. Currently I
system drbd module is 8.4. Not sure what you'll think of this
approach. I've uploaded the code to my github repo[0] for the time