Skip to content
  • Dimitris Aragiorgis's avatar
    Move common code out of DrbdAttachNet · cc1e9789
    Dimitris Aragiorgis authored
    
    
    DrbdAttachNet is used only by the _GoReconnect() helper during
    migration. Up until now, in case of multimaster it created the
    symlinks needed by the hypervisor and opened the devices so that
    they could be ready for I/O.
    
    With the introduction of _OpenInstanceDisks() we can now unify the
    code and let DrbdAttachNet do only DRBD-specific actions.
    
    Now DTS_INT_MIRROR only differs from DTS_EXT_MIRROR in the
    following steps during migration:
    
     _GoStandAlone()
     _GoReconnect()
     _WaitUntilSync()
    
    which are all DRBD-specific.
    
    Signed-off-by: default avatarDimitris Aragiorgis <dimitris.aragiorgis@gmail.com>
    Reviewed-by: default avatarHrvoje Ribicic <riba@google.com>
    cc1e9789