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/shared/protocol.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/shared') 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 ); -- cgit v1.2.3-55-g7522