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/shared | |
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/shared')
-rw-r--r-- | src/shared/protocol.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/protocol.h b/src/shared/protocol.h index 3539c21..a2f79f4 100644 --- a/src/shared/protocol.h +++ b/src/shared/protocol.h @@ -43,14 +43,14 @@ static inline bool dnbd3_get_reply(int sock, dnbd3_reply_t *reply) return ret == REPLY_OK; } -static inline bool dnbd3_select_image(int sock, const char *lower_name, uint16_t rid, uint8_t flags8) +static inline bool dnbd3_select_image(int sock, const char *name, uint16_t rid, uint8_t flags8) { serialized_buffer_t serialized; dnbd3_request_t request; struct iovec iov[2]; serializer_reset_write( &serialized ); serializer_put_uint16( &serialized, PROTOCOL_VERSION ); - serializer_put_string( &serialized, lower_name ); + serializer_put_string( &serialized, name ); serializer_put_uint16( &serialized, rid ); serializer_put_uint8( &serialized, flags8 ); const ssize_t len = serializer_get_written_length( &serialized ); |