From bf8fdccd296bb73154c5355ec6bdfd24fabe87d0 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 28 Aug 2019 10:36:05 +0200 Subject: [SERVER] Remove old comments --- src/server/altservers.c | 8 -------- src/server/image.c | 30 ------------------------------ 2 files changed, 38 deletions(-) diff --git a/src/server/altservers.c b/src/server/altservers.c index e088601..ff3c95b 100644 --- a/src/server/altservers.c +++ b/src/server/altservers.c @@ -363,14 +363,6 @@ static void altservers_imageFailed(dnbd3_uplink_t *uplink, int server) mutex_unlock( &altServersLock ); } -/** - * Mainloop of this module. It will wait for requests by uplinks to find a - * suitable uplink server for them. If found, it will tell the uplink about - * the best server found. Currently the RTT history is kept per server and - * not per uplink, so if many images use the same uplink server, the history - * will update quite quickly. Needs to be improved some time, ie. by only - * updating the rtt if the last update was at least X seconds ago. - */ static void *altservers_runCheck(void *data) { dnbd3_uplink_t * const uplink = (dnbd3_uplink_t*)data; diff --git a/src/server/image.c b/src/server/image.c index ace585b..de93cd4 100644 --- a/src/server/image.c +++ b/src/server/image.c @@ -1748,33 +1748,3 @@ static void* closeUnusedFds(void* nix UNUSED) } return NULL; } - -/* - void image_find_latest() - { - // Not in array or most recent rid is requested, try file system - if (revision != 0) { - // Easy case - specific RID - char - } else { - // Determine base directory where the image in question has to reside. - // Eg, the _basePath is "/srv/", requested image is "rz/ubuntu/default-13.04" - // Then searchPath has to be set to "/srv/rz/ubuntu" - char searchPath[strlen(_basePath) + len + 1]; - char *lastSlash = strrchr(name, '/'); - char *baseName; // Name of the image. In the example above, it will be "default-13.04" - if ( lastSlash == NULL ) { - *searchPath = '\0'; - baseName = name; - } else { - char *from = name, *to = searchPath; - while (from < lastSlash) *to++ = *from++; - *to = '\0'; - baseName = lastSlash + 1; - } - // Now we have the search path in our real file system and the expected image name. - // The revision naming sceme is .r, so if we're looking for revision 13, - // our example image has to be named default-13.04.r13 - } - } - */ -- cgit v1.2.3-55-g7522