summaryrefslogtreecommitdiffstats
path: root/src/server/globals.h
Commit message (Collapse)AuthorAgeFilesLines
* [SERVER] BREAKING: Get rid of pseudo case-insensitivityv2.1Simon Rettberg2016-02-011-3/+3
| | | | | | | | | | 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-0/+1
|
* [SERVER] Performance: Optimized some functions (gprof)Simon Rettberg2015-12-171-6/+9
| | | | | | | 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] More fine grained locking for RPC; better error loggingSimon Rettberg2015-12-161-4/+8
|
* [SERVER] Remove non-working images from list, plus refactoringSimon Rettberg2015-12-151-0/+6
| | | | | | | | | | 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] Make listen port configurableSimon Rettberg2015-12-141-2/+7
|
* [SERVER] Nullpad images virtually at runtime instead of padding the actual fileSimon Rettberg2015-12-101-1/+2
|
* [SERVER] Add image ID for easier handling in RPC, export RID via RPC, make ↵Simon Rettberg2015-05-081-0/+1
| | | | names of the byte count fields in RPC consistent
* [SERVER] Added counters for received and sent bytes.Stephan Schwaer2015-04-271-0/+2
|
* Get rid of unneccessary volatileSimon Rettberg2015-02-221-11/+11
| | | | Some minor debugging code, mostly commented out
* [SERVER] Use shared file handle for readingSimon Rettberg2015-01-301-0/+1
|
* [SERVER] Fix automatic proxying to use supplied connection; fix race ↵Simon Rettberg2015-01-271-1/+1
| | | | condition in uplink_init
* [SERVER] Crank up warning levels of gcc and fix them all (mostly sign ↵Simon Rettberg2015-01-141-1/+1
| | | | | | | 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] Get rid of epoll in alservers.c, make valgrind+gdb happy by ↵Simon Rettberg2015-01-061-1/+1
| | | | handling signals even though we block them
* [SERVER] Use a thread pool for client connectionsSimon Rettberg2015-01-051-2/+0Star
|
* [SERVER] Use stdbool.h for booleans; minor refactoring of variable and ↵Simon Rettberg2014-12-311-11/+13
| | | | function names
* [SERVER] Add setting to enable/disable background replication, add comments ↵Simon Rettberg2014-12-291-0/+6
| | | | to config and code
* [SERVER] Improve replication and reconnecting behaviourSimon Rettberg2014-12-221-1/+1
|
* [SERVER] Configurable client timeout, adaptive replication speed (to be ↵Simon Rettberg2014-12-221-2/+8
| | | | 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-5/+5
| | | | change stupid convention of freeDiskSpace returning 0 on error, which is ambiguous to the disk simply being full...
* [SERVER] Automatic replication of images that are not complete on proxy. ↵Simon Rettberg2013-11-131-0/+2
| | | | 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-0/+1
| | | | save network bandwidth
* Merge branch 'simon' of dnbd3:dnbd3 into simonSimon Rettberg2013-11-121-0/+5
|\ | | | | | | | | Conflicts: src/server/altservers.c
| * [SERVER] Minor tweaks here and thereSimon Rettberg2013-11-101-0/+5
| |
* | [SERVER] Add "client only" flag for alt serversSimon Rettberg2013-11-121-1/+1
|/
* aesfsrgdsrSimon Rettberg2013-11-071-0/+5
|
* [SERVER] More debugging, more safety checks, disable alt servers that fail ↵Simon Rettberg2013-09-161-1/+2
| | | | too often
* [SERVER] Copy CRC-32 list from uplink server if availableSimon Rettberg2013-08-281-2/+12
| | | | | Split up helper.c, move file/disk related functions to fileutil.c Uplink: Make sure relayed requests are at least 1MiB
* [SERVER] Improve proxy mode, implement integrity check in proxy modeSimon Rettberg2013-08-121-0/+1
|
* I'm stupidSimon Rettberg2013-08-051-1/+1
|
* [SERVER] Fix use-after-free, improve cleanupSimon Rettberg2013-08-021-1/+1
|
* [SERVER] several improvementsSimon Rettberg2013-08-021-0/+11
| | | | | | 1) Close uplink if local copy is complete 2) Fix memleak when closing uplink (recv buffer was not cleared) 3) Add configurable artificial delays for client and server connections
* [SERVER] Fix create_image() by adding fallback solutions for fallocate()Simon Rettberg2013-08-011-0/+1
|
* [SERVER] Add command line options to create empty image of certain size with ↵Simon Rettberg2013-08-011-1/+8
| | | | empty cache map (so it needs an uplink server)
* [SERVER] Uplink handing complete (untested, as alt servers can't be defined ↵Simon Rettberg2013-07-311-1/+2
| | | | yet, so prepare for lots of fixes ;))
* [SERVER] Still working on the uplink... Almost theresr2013-07-261-10/+14
|
* Work in progress: uplinksr2013-07-251-0/+1
|
* ...Working on proxy mode...sr2013-07-251-4/+43
|
* Remove all glib dependencies from serversr2013-07-171-2/+1Star
|
* Add debug-lock functions that will helpt to spot deadlocks etc. while developingsr2013-07-161-0/+2
|
* "It's compiling!"sr2013-07-151-0/+72
|
* Rewrite in progres....sr2013-07-091-0/+14