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

@@ -82,6 +82,12 @@ struct mirror {
/* The current mirror pass. We put this here so status can query it */
int pass;
/* The number of dirty (had to send to dest) and clean (could skip) bytes
* for this pass. Add them together and subtract from size to get remaining
* bytes. */
uint64_t this_pass_dirty;
uint64_t this_pass_clean;
};