-
Iustin Pop authored
Currently, this function expects (but doesn't really check! only via secondary node being defined) a DRBD8 template type. This patch (not very readable, sorry) changes it so that we check whether we're internally mirrored, externally mirrored, or not mirrored at all. It then proceeds to do the right thing™ per the mirror type, so that it can work well with both. Signed-off-by: Iustin Pop <iustin@google.com> Reviewed-by: Guido Trotter <ultrotter@google.com>
3d7d3a1f