flexnbd status: Add the size of the backing file, in bytes

This will be handy information if you're querying flexnbd for migration
stats, particularly.
This commit is contained in:
nick
2013-07-08 10:11:18 +01:00
parent f556f298b1
commit dee0bb27d6
3 changed files with 52 additions and 5 deletions

View File

@@ -20,6 +20,9 @@
* pid:
* The current process ID.
*
* size:
* The size of the backing file being served, in bytes.
*
* has_control:
* This will be false when the server is listening for an incoming
* migration. It will switch to true when the end-of-migration
@@ -53,6 +56,7 @@
struct status {
pid_t pid;
uint64_t size;
int has_control;
int is_mirroring;
int migration_pass;