diff options
author | Simon Rettberg | 2016-02-01 12:41:11 +0100 |
---|---|---|
committer | Simon Rettberg | 2016-02-01 12:41:11 +0100 |
commit | 81c9da3c9d55fab13ab9a912cade320015d01613 (patch) | |
tree | 03b8ab9263b72c3ce746d1827222a03696452a9d /src/server/globals.h | |
parent | [SERVER] Fix a lot of (mostly harmless) data races (diff) | |
download | dnbd3-81c9da3c9d55fab13ab9a912cade320015d01613.tar.gz dnbd3-81c9da3c9d55fab13ab9a912cade320015d01613.tar.xz dnbd3-81c9da3c9d55fab13ab9a912cade320015d01613.zip |
[SERVER] BREAKING: Get rid of pseudo case-insensitivityv2.1
This was a wrong decision made long time ago, and it's broken in
certain scenarios (eg. two servers serving from same NFS mount).
Also it's of limited use anyways since it only supportes ASCII and
would ignore umlauts, so blöd and BLÖD would still be considered
two different images.
So if you relied on this "feature" in any way, be careful when
updating.
Diffstat (limited to 'src/server/globals.h')
-rw-r--r-- | src/server/globals.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/globals.h b/src/server/globals.h index c67b5a6..b0380fa 100644 --- a/src/server/globals.h +++ b/src/server/globals.h @@ -94,13 +94,13 @@ typedef struct /** * Image struct. An image path could be something like * /mnt/images/rz/zfs/Windows7 ZfS.vmdk.r1 - * and the lower_name would then be + * and the name would then be * rz/zfs/windows7 zfs.vmdk */ struct _dnbd3_image { char *path; // absolute path of the image - char *lower_name; // relative path, all lowercase, minus revision ID + char *name; // public name of the image (usually relative path minus revision ID) dnbd3_connection_t *uplink; // pointer to a server connection uint8_t *cache_map; // cache map telling which parts are locally cached, NULL if complete uint64_t virtualFilesize; // virtual size of image (real size rounded up to multiple of 4k) @@ -116,7 +116,7 @@ struct _dnbd3_image int completenessEstimate; // Completeness estimate in percent 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 - bool working; // true if image exists and completeness is == 100% or a working upstream proxy is connected + bool working; // true if image exists and completeness is == 100% or a working upstream proxy is connected pthread_spinlock_t lock; }; |