summaryrefslogtreecommitdiffstats
path: root/src/server/uplink.c
Commit message (Collapse)AuthorAgeFilesLines
* [SERVER] BREAKING: Get rid of pseudo case-insensitivityv2.1Simon Rettberg2016-02-011-9/+9
| | | | | | | | | | 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.
* [SERVER] Fix a lot of (mostly harmless) data racesSimon Rettberg2016-01-111-10/+28
|
* [SERVER] Performance: Optimized some functions (gprof)Simon Rettberg2015-12-171-11/+17
| | | | | | | A run with gprof revealed that background replication is a huge CPU hog. The block selection was very slow and has been improved a lot. Minor improvements were made to other functions that scan the cache map of an image and are thus relatively slow.
* [SERVER] image_markComplete now handles locking so we remove() unlockedSimon Rettberg2015-12-171-8/+6Star
|
* [SERVER] More fine grained locking for RPC; better error loggingSimon Rettberg2015-12-161-3/+11
|
* [SERVER] Remove non-working images from list, plus refactoringSimon Rettberg2015-12-151-6/+12
| | | | | | | | | | Now that we can automatically load unknown images from disk on request, it makes sense to remove non-working images from the image list. On future requests, we will look for them on disk again, which is nice in case of temporary storage hickups. Also, some more ore less related locking has been refined (loading images, replicating images)
* [SERVER] Support looking on disk if an unknown image is requestedSimon Rettberg2015-12-121-4/+4
|
* [SERVER] Nullpad images virtually at runtime instead of padding the actual fileSimon Rettberg2015-12-101-5/+5
|
* [SERVER] Update includes for moved log.hSimon Rettberg2015-12-021-1/+1
|
* [FUSE] Mid-refactoring, does not compileSimon Rettberg2015-11-241-1/+1
|
* [FUSE] Start refactoring so we can handle multithread fuseSimon Rettberg2015-11-211-2/+2
|
* [SERVER] Fix integer overflow of global bytesReceived getterSimon Rettberg2015-05-131-1/+1
|
* [Server] Added statistics of images and uptime to json.Stephan Schwaer2015-05-051-9/+3Star
|
* Removed dnbd3_printClients, added clients to statistics json in rpc.Stephan Schwaer2015-05-041-3/+17
|
* [SERVER] Added counters for received and sent bytes.Stephan Schwaer2015-04-271-1/+18
|
* [FUSE] Integrate into cmake build processSimon Rettberg2015-04-241-1/+1
|
* [SERVER] printf -> logadd, make USR2 trigger a log cycle, remove old fake ↵Simon Rettberg2015-02-231-3/+3
| | | | delay feature
* [SERVER] Overhauled loggingSimon Rettberg2015-02-221-32/+32
| | | | | | - Added message type parameter - Log to file and stdout, no more logging in memory - Added options to server.conf to filter which messages show up where
* Get rid of unneccessary volatileSimon Rettberg2015-02-221-7/+28
| | | | Some minor debugging code, mostly commented out
* [SERVER] Fix two minor bugs: Replication stall, integrity checker 100% CPU usageSimon Rettberg2015-02-041-1/+1
|
* [SERVER] Implement proper keep alive for uplinksSimon Rettberg2015-01-281-17/+16Star
|
* [SERVER] Also fix fd leak if uplink_init failsSimon Rettberg2015-01-271-0/+1
|
* [SERVER] Fix automatic proxying to use supplied connection; fix race ↵Simon Rettberg2015-01-271-18/+26
| | | | condition in uplink_init
* [SERVER] Crank up warning levels of gcc and fix them all (mostly sign ↵Simon Rettberg2015-01-141-2/+2
| | | | | | | compare and some unused params) Also allow newline at end of alt-servers file without complaining about it not being a valid alt server definition.
* [SERVER] Fix stupid bug (not using errno)Simon Rettberg2015-01-131-1/+1
|
* [SERVER] Refactoring, extending protocol.hSimon Rettberg2015-01-091-22/+13Star
|
* [SERVER] Big code cleanup, refactoring, minor bugfixingSimon Rettberg2015-01-061-8/+7Star
|
* [SERVER] Dead code removal, minor performance tweaks, refactoring, etc.Simon Rettberg2015-01-021-18/+9Star
|
* [SERVER] Use stdbool.h for booleans; minor refactoring of variable and ↵Simon Rettberg2014-12-311-39/+34Star
| | | | function names
* [SERVER] Create compilation unit for wait/signalling logic (using eventfd)Simon Rettberg2014-12-311-26/+14Star
|
* [SERVER] Add setting to enable/disable background replication, add comments ↵Simon Rettberg2014-12-291-4/+12
| | | | to config and code
* [SERVER] Improve replication and reconnecting behaviourSimon Rettberg2014-12-221-27/+29
|
* [SERVER] Configurable client timeout, adaptive replication speed (to be ↵Simon Rettberg2014-12-221-15/+22
| | | | tested against varying bw/latency), retry sendfile call if ret <= len
* Improve uplink handling, add code to debug thread creation/destruction, ↵Simon Rettberg2014-06-161-17/+18
| | | | change stupid convention of freeDiskSpace returning 0 on error, which is ambiguous to the disk simply being full...
* [SERVER] Thread and uplink handlingSimon Rettberg2014-02-131-0/+1
|
* [SERVER] Remove assertion that doesn't really check for an illegal stateSimon Rettberg2014-01-131-1/+0Star
|
* [SERVER] Once again rework locking in uplink and freeing of resources to ↵Simon Rettberg2013-11-151-17/+36
| | | | fight messups when the uplink is shut down
* [SERVER] Automatic replication of images that are not complete on proxy. ↵Simon Rettberg2013-11-131-2/+54
| | | | Speed probably needs tweaking for different link speeds etc.
* [SERVER] Increase RTT check delay for uplinks that failed too many times to ↵Simon Rettberg2013-11-131-9/+11
| | | | save network bandwidth
* [SERVER] Refactoring, more debug output, try to check for cyclic proxyingSimon Rettberg2013-10-221-0/+9
|
* [SERVER] Fix unlock-without-lock in uplinkSimon Rettberg2013-10-011-1/+1
|
* [SERVER] Block signals on network threadsSimon Rettberg2013-09-171-0/+1
|
* [SERVER] Properly decrease uplink.queueLen when removing a clientSimon Rettberg2013-09-171-4/+2Star
|
* [SERVER] More debugging, more safety checks, disable alt servers that fail ↵Simon Rettberg2013-09-161-6/+12
| | | | too often
* [SERVER] Save CRC-32 to disk if successfully retreived from uplink serverSimon Rettberg2013-08-281-1/+11
|
* [SERVER] Remove stupid 1MiB request expansion, this clearly needs to be done ↵Simon Rettberg2013-08-281-3/+5
| | | | differently :)
* [SERVER] Fix *printf format strings, remove falsely detected errorsSimon Rettberg2013-08-281-3/+5
|
* [SERVER] Copy CRC-32 list from uplink server if availableSimon Rettberg2013-08-281-16/+46
| | | | | Split up helper.c, move file/disk related functions to fileutil.c Uplink: Make sure relayed requests are at least 1MiB
* [SERVER] On-the-fly transparent proxyingSimon Rettberg2013-08-261-34/+42
|
* [SERVER] (Hopefully) fix starving uplink requestsSimon Rettberg2013-08-151-5/+15
|