From 2ab53f3a518dcd8b703e515ffd123adce181044c Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 8 May 2015 10:53:06 +0200 Subject: [SERVER] Add image ID for easier handling in RPC, export RID via RPC, make names of the byte count fields in RPC consistent --- src/server/globals.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/server/globals.h') 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; -- cgit v1.2.3-55-g7522