summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [SERVER] BREAKING: Get rid of pseudo case-insensitivityv2.1Simon Rettberg2016-02-019-54/+41Star
| | | | | | | | | | 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-1114-96/+166
|
* [KERNEL/CLIENT] Several minor tweaks and changesSimon Rettberg2016-01-116-17/+20
| | | | | | | | | | - Disable panic timeout that reports errors to block layer by default - Get rid of "is_server" used by old proxy mode, introduce "honor_server_alts" that just controls whether we use alts provided by the server - Allow switching servers when we only have 3 RTT measurements - If using alts provided by server, don't ignore those that come from other servers than the initial one
* [FUSE] Handle SIGINT/SIGTERM to abort pending readsSimon Rettberg2015-12-172-1/+35
| | | | | | | | | Before, we would wait endlessly if there is a pending read request that doesn't get answered (e.g. because the server went down. That means you couldn't exit the client in that case. Now we use a signal handler to set a flag which causes the read to bail out and return EIO.
* [SERVER] Performance: Optimized some functions (gprof)Simon Rettberg2015-12-175-26/+46
| | | | | | | 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-173-16/+19
|
* [SERVER] Cancel scanning of image dir if _shutdown is setSimon Rettberg2015-12-162-4/+8
| | | | So you can cancel image loading on startup via Ctrl-C
* [SERVER] Fix image_calcBlockCrc32: Use 64bit for fileSize paramSimon Rettberg2015-12-161-22/+27
| | | | Using uint32_t for fileSize is not too clever :(
* [SERVER] More fine grained locking for RPC; better error loggingSimon Rettberg2015-12-168-68/+144
|
* [FUSE] Fix forking mode (not passing -f) by not spawning threads before ↵Simon Rettberg2015-12-163-30/+53
| | | | entering fuse_main
* [SERVER] Update config exampleSimon Rettberg2015-12-152-2/+10
|
* [SERVER] Remove non-working images from list, plus refactoringSimon Rettberg2015-12-158-134/+318
| | | | | | | | | | 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-143-3/+18
|
* [SERVER] Free memory on exit to get new valgrind high scoreSimon Rettberg2015-12-141-1/+4
|
* [SERVER] Disallow images starting with "." now that we allow load-on-demandSimon Rettberg2015-12-141-1/+2
| | | | | This will prevent hidden files from being exported to clients and also prevents directory traversal attacks ( ../../image.img )
* [SERVER] Support looking on disk if an unknown image is requestedSimon Rettberg2015-12-125-28/+116
|
* [SERVER] Nullpad images virtually at runtime instead of padding the actual fileSimon Rettberg2015-12-106-173/+158Star
|
* [FUSE] Make valgrind happy by initializing memory and not calling close() on -1Simon Rettberg2015-12-101-2/+4
|
* [FUSE] Fix stack overflow caused by stats dataSimon Rettberg2015-12-101-3/+5
|
* [SERVER] Remove redundant range checkSimon Rettberg2015-12-091-8/+0Star
|
* [SERVER] Use error code constants instead of magic valuesSimon Rettberg2015-12-071-4/+4
|
* [SERVER] Add missing nullptr check from refactoring, improve lockingSimon Rettberg2015-12-071-9/+11
|
* [FUSE] Fix formatting in /status outputSimon Rettberg2015-12-071-6/+4Star
|
* [FUSE] Fix embarrassing memcpy over two different structsSimon Rettberg2015-12-031-3/+6
|
* [FUSE] Add --log optionSimon Rettberg2015-12-031-12/+29
|
* [FUSE] Try to get caching rightSimon Rettberg2015-12-031-2/+3
|
* [SERVER] Update includes for moved log.hSimon Rettberg2015-12-0210-11/+11
|
* [FUSE] Add virtual status fileSimon Rettberg2015-12-025-16/+140
|
* [FUSE] Request alt servers from connected serverSimon Rettberg2015-12-022-26/+100
|
* [FUSE] Clean up command line handlingSimon Rettberg2015-12-021-37/+93
|
* [FUSE] Remove debug code that forced server switches all the timeSimon Rettberg2015-12-011-2/+1Star
|
* [FUSE] Fix losing requests on server changeSimon Rettberg2015-12-012-16/+26
|
* [FUSE] Stability improvements, runs for longer than a couple secs now :)Simon Rettberg2015-12-014-55/+75
|
* [FUSE] It works! Kinda...Simon Rettberg2015-11-307-206/+226
|
* [FUSE] Compiles againSimon Rettberg2015-11-306-59/+4Star
|
* [FUSE] Mid-refactoring, does not compileSimon Rettberg2015-11-2415-86/+360
|
* [SERVER] Fix race condition potentially leading to use after releaseSimon Rettberg2015-11-231-2/+2
|
* [FUSE] RefactoringSimon Rettberg2015-11-231-51/+69
|
* [FUSE] Start refactoring so we can handle multithread fuseSimon Rettberg2015-11-2116-29/+264
|
* [SERVER] Improve image related lockingSimon Rettberg2015-11-201-1/+7
|
* [SERVER] Check uplink server for newer revision than local if client ↵Simon Rettberg2015-11-111-15/+22
| | | | requests rid=0
* [KERNEL] Add support for kernel 4.2.xSimon Rettberg2015-10-132-2/+12
|
* [SERVER] Fix integer overflow of global bytesReceived getterSimon Rettberg2015-05-131-1/+1
|
* [SERVER] Reload images in another thread when triggered by signalSimon Rettberg2015-05-124-39/+63
| | | | | | | The server used to reload all images on the main thread, which is also responsible for accepting connections. While reloading the list, no new connections were accepted, which lead to clients marking the server as bad during their RTT measurements, then switching away from it.
* [SERVER] Fix dependency checks for dnbd3-serverSimon Rettberg2015-05-121-7/+17
|
* [SERVER] Renamed image_fillJson to image_getListAsJson.Stephan Schwaer2015-05-083-3/+3
|
* [SERVER] Rename some more RPC fieldsSimon Rettberg2015-05-082-2/+2
|
* [SERVER] Add image ID for easier handling in RPC, export RID via RPC, make ↵Simon Rettberg2015-05-084-11/+17
| | | | names of the byte count fields in RPC consistent
* [SERVER] Fix premature connection close for RPC repliesSimon Rettberg2015-05-053-7/+40
|
* [Server] Added statistics of images and uptime to json.Stephan Schwaer2015-05-058-48/+35Star
|