Fam Zheng 3c76c606da block: Make 'replication_state' an enum
BDRVReplicationState.replication_state is a name with a bit of
duplication, plus it could be an enum like BDRVReplicationState.mode,
which is more readable and also more straightforward in a debugger.

Rename it, and improve the type while at it.

Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
2017-05-07 09:57:51 +03:00
..
2016-01-20 13:36:23 +01:00
2017-04-28 16:02:03 +02:00
2017-03-31 15:53:22 -04:00
2016-10-07 14:14:06 +02:00
2016-10-07 14:14:06 +02:00
2017-04-04 11:40:55 +01:00
2016-11-25 13:51:30 +01:00
2017-04-28 16:02:02 +02:00
2016-06-07 18:19:24 +03:00
2016-01-20 13:36:23 +01:00
2016-01-20 13:36:23 +01:00
2017-04-28 16:02:02 +02:00
2016-09-23 11:42:52 +08:00
2017-04-28 16:02:02 +02:00
2017-04-28 16:02:02 +02:00
2017-04-28 16:02:02 +02:00