Random Project

good but not perfect

Hello,

I really like this plugin. It is easy to use and the syntax is very well written. But I can not use it on DRBD 8.3.

The Plugin does not show the correct role. A short look and I realized that the plugin does not use the correct pattern. To detect if a DRBD volume is Primary or Secondary the “old” “st:” string is checked. but this string does not exists anymore.

Theifore I just changed in line 213 from:
if (/^s?(d+):.* st:(w+)//) {

to

if (/^s?(d+):.* ro:(w+)//) {

Now as far as I can see it works perfectly with version 0.8.3

Best Regards,
Phil