From 81c9da3c9d55fab13ab9a912cade320015d01613 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 1 Feb 2016 12:41:11 +0100 Subject: [SERVER] BREAKING: Get rid of pseudo case-insensitivity 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. --- src/server/globals.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/server/globals.h') 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; }; -- cgit v1.2.3-55-g7522