Commit 0c2f58bb authored by Klaus Aehlig's avatar Klaus Aehlig

Declare new IAllocator mode allocate-secondary

When switching form plain to DRBD, a suitable secondary node has to
be chosen. As this is part of an allocation process, extend the
IAllocator interface by declaring a new mode for this.
Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
Reviewed-by: default avatarHelga Velroyen <helgav@google.com>
parent 42d4edb6
......@@ -3409,6 +3409,10 @@ validIallocatorDirections =
iallocatorModeAlloc :: String
iallocatorModeAlloc = Types.iAllocatorModeToRaw IAllocatorAlloc
iallocatorModeAllocateSecondary :: String
iallocatorModeAllocateSecondary =
Types.iAllocatorModeToRaw IAllocatorAllocateSecondary
iallocatorModeChgGroup :: String
iallocatorModeChgGroup = Types.iAllocatorModeToRaw IAllocatorChangeGroup
......
......@@ -654,6 +654,7 @@ $(THH.makeJSONInstance ''IAllocatorTestDir)
-- | IAllocator mode. FIXME: use this in "HTools.Backend.IAlloc".
$(THH.declareLADT ''String "IAllocatorMode"
[ ("IAllocatorAlloc", "allocate")
, ("IAllocatorAllocateSecondary", "allocate-secondary")
, ("IAllocatorMultiAlloc", "multi-allocate")
, ("IAllocatorReloc", "relocate")
, ("IAllocatorNodeEvac", "node-evacuate")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment