[DRBD-user] drbd-overview and stacked resources

Lars Ellenberg lars.ellenberg at linbit.com
Mon Jan 16 20:39:29 CET 2012

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


On Mon, Jan 16, 2012 at 02:30:01PM +0300, Vladislav Bogdanov wrote:
> Hi all,
> 
> Following patch fixes output information in drbd-overview for resource
> stacked on top of drbd0 (^^0 is not shown).
> 
> --- drbd-8.3.12.orig/scripts/drbd-overview.pl   2011-07-20
> 08:19:51.000000000 +0000
> +++ drbd-8.3.12/scripts/drbd-overview.pl        2012-01-12
> 07:44:50.588649947 +0000
> @@ -260,7 +260,7 @@ for my $m (sort { $a <=> $b } keys %drbd
> 
>         $out[$line] = [
>                 sprintf("%3u:%s", $m, $t->{name} || "??not-found??"),
> -               $t->{ll_dev} ? "^^$t->{ll_dev}" : "",
> +               exists $t->{ll_dev} ? "^^$t->{ll_dev}" : "",
>                 split(/\s+/, $t->{state}),
>                 @used_by
>         ];

http://git.drbd.org/gitweb.cgi?p=drbd-8.3.git;a=commitdiff;h=da9b31ef

 ;)

-- 
: Lars Ellenberg
: LINBIT | Your Way to High Availability
: DRBD/HA support and consulting http://www.linbit.com

DRBD® and LINBIT® are registered trademarks of LINBIT, Austria.



More information about the drbd-user mailing list