[Drbd-dev] Patch: drbdadm.sh

Dominik Klein dk at in-telegence.net
Wed Feb 18 14:45:07 CET 2009


Dominik Klein wrote:
> When using the bash completion feature on machines with currently
> unconfigured drbd resources, it kept throwing error messages rendering
> the cmdline unreadable.
> 
> Typing "drbdadm pr<tab> <tab>" would give s.th. like
> 
> dktest3:~ # drbdadm primary /dev/drbd0: Failure: (127) Device minor not
> allocated
> Command 'drbdsetup /dev/drbd0 state' terminated with exit code 10
> kvm2
> 
> Consider the attached patch.
> 
> Regards
> Dominik
> 

Well, this happens when you use diff with "new old" instead of "old
new". Guess you got the idea anyway.

Regards
Dominik


More information about the drbd-dev mailing list