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

@@ -32,8 +32,17 @@
* or "serve" mode. It will become true when a server in "serve"
* mode starts a migration, and will become false again when the
* migration terminates, successfully or not.
* If the server is currently in "listen" mode, this will never b
* If the server is currently in "listen" mode, this will never be
* true.
*
* If is_migrating is true, then a number of other attributes may appear,
* relating to the progress of the migration.
*
* migration_pass:
* When migrating, we perform a number of passes over the file. This indicates
* the current pass.
*
*
*/
@@ -46,6 +55,7 @@ struct status {
pid_t pid;
int has_control;
int is_mirroring;
int migration_pass;
};
/** Create a status object for the given server. */
@@ -60,3 +70,4 @@ void status_destroy( struct status * );
#endif