Implement config support for drbd static minors
authorIustin Pop <iustin@google.com>
Tue, 23 Sep 2008 12:10:35 +0000 (12:10 +0000)
committerIustin Pop <iustin@google.com>
Tue, 23 Sep 2008 12:10:35 +0000 (12:10 +0000)
commita81c53c921428420eb66650d8011abcce1504fed
treef4d00dcbfcf06de2c7902d383e512626571283cf
parent468b46f9258cc0753a66d6f643c8f930efdb23a3
Implement config support for drbd static minors

This patch adds support for allocating static minors.

Like for the LVM uuids, we add a new cache for the temporarily allocated
requests, and the users of the new methods must manually clear the
cache. If this doesn't happen, at worst we lose some minors.

Todos remaining:
  - implement duplicate check at configuration load, and at instance
    add/instance update
  - investigate automatically cleaning the cache on instance add/update
    if the minors/instance/node pairs match

Reviewed-by: imsnah
lib/config.py