summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2019-08-28 10:36:05 +0200
committerSimon Rettberg2019-08-28 10:36:05 +0200
commitbf8fdccd296bb73154c5355ec6bdfd24fabe87d0 (patch)
tree4b60760bd2fb8bb02a91d4d4f0979793fa2d8042
parent[SERVER] Handle closeUnusedFd via timer (diff)
downloaddnbd3-bf8fdccd296bb73154c5355ec6bdfd24fabe87d0.tar.gz
dnbd3-bf8fdccd296bb73154c5355ec6bdfd24fabe87d0.tar.xz
dnbd3-bf8fdccd296bb73154c5355ec6bdfd24fabe87d0.zip
[SERVER] Remove old comments
-rw-r--r--src/server/altservers.c8
-rw-r--r--src/server/image.c30
2 files changed, 0 insertions, 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 <IMAGENAME>.r<RID>, so if we're looking for revision 13,
- // our example image has to be named default-13.04.r13
- }
- }
- */