From c4141d61d8748bbbc3e21a9416b9fd7f8a5a75f3 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 28 Aug 2013 18:23:50 +0200 Subject: [SERVER] Remove stupid 1MiB request expansion, this clearly needs to be done differently :) --- src/server/image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/server/image.c') diff --git a/src/server/image.c b/src/server/image.c index 11029df..b47be48 100644 --- a/src/server/image.c +++ b/src/server/image.c @@ -251,7 +251,7 @@ dnbd3_image_t* image_get(char *name, uint16_t revision) // Either the image is already marked as "not working", or the file cannot be accessed printf( "[DEBUG] File '%s' has gone away...\n", candidate->path ); candidate->working = FALSE; // No file? OUT! - } else if ( !candidate->working && candidate->cache_map != NULL && file_isWritable( candidate->path ) ) { + } else if ( !candidate->working && candidate->cache_map != NULL && candidate->uplink == NULL && file_isWritable( candidate->path ) ) { // Not working and has file + cache-map, try to init uplink (uplink_init will check if proxy mode is enabled) uplink_init( candidate, -1, NULL ); } -- cgit v1.2.3-55-g7522