diff options
author | Simon Rettberg | 2015-05-08 10:53:06 +0200 |
---|---|---|
committer | Simon Rettberg | 2015-05-08 10:53:06 +0200 |
commit | 2ab53f3a518dcd8b703e515ffd123adce181044c (patch) | |
tree | 96e52eddf2c9808ace02cfc5d4bb0457e8153ae0 /src/server/globals.h | |
parent | [SERVER] Fix premature connection close for RPC replies (diff) | |
download | dnbd3-2ab53f3a518dcd8b703e515ffd123adce181044c.tar.gz dnbd3-2ab53f3a518dcd8b703e515ffd123adce181044c.tar.xz dnbd3-2ab53f3a518dcd8b703e515ffd123adce181044c.zip |
[SERVER] Add image ID for easier handling in RPC, export RID via RPC, make names of the byte count fields in RPC consistent
Diffstat (limited to 'src/server/globals.h')
-rw-r--r-- | src/server/globals.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/server/globals.h b/src/server/globals.h index 9f6a46d..9024a46 100644 --- a/src/server/globals.h +++ b/src/server/globals.h @@ -108,6 +108,7 @@ struct _dnbd3_image int cacheFd; // used to write to the image, in case it is relayed. ONLY USE FROM UPLINK THREAD! int rid; // revision of image int users; // clients currently using this image + int id; // Unique ID of this image. Only unique in the context of this running instance of DNBD3-Server time_t atime; // last access time bool working; // true if image exists and completeness is == 100% or a working upstream proxy is connected pthread_spinlock_t lock; |