diff options
author | Simon Rettberg | 2013-08-28 18:23:50 +0200 |
---|---|---|
committer | Simon Rettberg | 2013-08-28 18:23:50 +0200 |
commit | c4141d61d8748bbbc3e21a9416b9fd7f8a5a75f3 (patch) | |
tree | 6ea18863656a0e264cf8b708d0741661a087f943 /src/server/image.c | |
parent | [SERVER] Fix *printf format strings, remove falsely detected errors (diff) | |
download | dnbd3-c4141d61d8748bbbc3e21a9416b9fd7f8a5a75f3.tar.gz dnbd3-c4141d61d8748bbbc3e21a9416b9fd7f8a5a75f3.tar.xz dnbd3-c4141d61d8748bbbc3e21a9416b9fd7f8a5a75f3.zip |
[SERVER] Remove stupid 1MiB request expansion, this clearly needs to be done differently :)
Diffstat (limited to 'src/server/image.c')
-rw-r--r-- | src/server/image.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 ); } |