flexnbd status: Add current pass clean/dirty byte statistics

This commit is contained in:
nick
2013-07-08 13:51:15 +01:00
parent b29ef6d4de
commit f4bfc70a4b
5 changed files with 44 additions and 0 deletions

View File

@@ -17,6 +17,8 @@ struct status * status_create( struct server * serve )
status->is_mirroring = NULL != serve->mirror;
if ( status->is_mirroring ) {
status->migration_pass = serve->mirror->pass;
status->pass_dirty_bytes = serve->mirror->this_pass_dirty;
status->pass_clean_bytes = serve->mirror->this_pass_clean;
}
server_unlock_start_mirror( serve );