serve/mirror: Move some code tracking migration speed into serve

The rationale is that status will need this information
This commit is contained in:
nick
2013-09-23 13:49:01 +01:00
parent 0f2225becf
commit 0ae249009c
4 changed files with 34 additions and 15 deletions

View File

@@ -123,6 +123,10 @@ void server_unlock_acl( struct server *serve );
void server_lock_start_mirror( struct server *serve );
void server_unlock_start_mirror( struct server *serve );
int server_is_mirroring( struct server * serve );
uint64_t server_mirror_bytes_remaining( struct server * serve );
uint64_t server_mirror_eta( struct server * serve );
void server_abandon_mirror( struct server * serve );
void server_prevent_mirror_start( struct server *serve );
void server_allow_mirror_start( struct server *serve );