Revision bf25af3b lib/bdev.py
b/lib/bdev.py | ||
---|---|---|
2024 | 2024 |
# even though we were passed some children at init time |
2025 | 2025 |
if match_r and "local_dev" not in info: |
2026 | 2026 |
break |
2027 |
if match_l and not match_r and "local_addr" in info: |
|
2027 |
|
|
2028 |
# this case must be considered only if we actually have local |
|
2029 |
# storage, i.e. not in diskless mode, because all diskless |
|
2030 |
# devices are equal from the point of view of local |
|
2031 |
# configuration |
|
2032 |
if (match_l and "local_dev" in info and |
|
2033 |
not match_r and "local_addr" in info): |
|
2028 | 2034 |
# strange case - the device network part points to somewhere |
2029 | 2035 |
# else, even though its local storage is ours; as we own the |
2030 | 2036 |
# drbd space, we try to disconnect from the remote peer and |
Also available in: Unified diff