flexnbd status: Add current migration pass to the status output if we're migrating

This commit is contained in:
nick
2013-07-08 09:58:31 +01:00
parent 55b452ebef
commit f556f298b1
5 changed files with 85 additions and 6 deletions

View File

@@ -69,7 +69,7 @@ struct mirror {
const char * filename;
off64_t max_bytes_per_second;
enum mirror_finish_action action_at_finish;
char *mapped;
struct bitset_mapping *dirty_map;
@@ -79,6 +79,9 @@ struct mirror {
* and checking the remote size, whether successful or not.
*/
struct mbox * commit_signal;
/* The current mirror pass. We put this here so status can query it */
int pass;
};
@@ -106,3 +109,4 @@ struct mirror_super * mirror_super_create(
);
void * mirror_super_runner( void * serve_uncast );
#endif