mirror: Use libev to provide an event loop inside the mirror thread

We're doing this so we can implement bandwidth controls sanely.
This commit is contained in:
nick
2013-08-09 17:02:10 +01:00
parent 754949d43f
commit c2df38c9d3
4 changed files with 434 additions and 119 deletions

View File

@@ -40,7 +40,7 @@ enum mirror_state;
* between the end of the written data and the start of the NBD reply.
*/
#define MS_REQUEST_LIMIT_SECS 4
#define MS_REQUEST_LIMIT_SECS_F 4.0
enum mirror_finish_action {
ACTION_EXIT,