summaryrefslogtreecommitdiffstats
path: root/src/server
Commit message (Collapse)AuthorAgeFilesLines
...
* running FreeBSD sendfileSebastian2016-02-111-13/+36
|
* dnbd3server build success on freebsd :)Sebastian2016-02-117-27/+56
|
* cleanup commitsSebastian2016-02-1117-121/+39Star
|
* [SHARED] signal.h -> fdsignal.hSimon Rettberg2016-02-106-6/+6
|
* First steps in make signals more abstract from the underlying mechanism; ↵Simon Rettberg2016-02-055-96/+71Star
| | | | | | | | | | replace epoll with poll. We now don't assume that a signal equals a single fd (eventfd on Linux). The next step would be to create a version of signal.c that uses a pipe internally, so it can be used on other platforms, like *BSD. This is also the reason epoll was replaced with poll in uplink.c
* [SERVER] BREAKING: Get rid of pseudo case-insensitivityv2.1Simon Rettberg2016-02-018-52/+39Star
| | | | | | | | | | 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-1111-90/+159
|
* [SERVER] Performance: Optimized some functions (gprof)Simon Rettberg2015-12-174-25/+45
| | | | | | | 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-172-15/+18
|
* [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-167-68/+143
|
* [SERVER] Update config exampleSimon Rettberg2015-12-151-2/+6
|
* [SERVER] Remove non-working images from list, plus refactoringSimon Rettberg2015-12-156-131/+315
| | | | | | | | | | 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
|
* [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
|
* [SERVER] Update includes for moved log.hSimon Rettberg2015-12-0210-11/+11
|
* [FUSE] Compiles againSimon Rettberg2015-11-302-238/+0Star
|
* [FUSE] Mid-refactoring, does not compileSimon Rettberg2015-11-248-306/+6Star
|
* [SERVER] Fix race condition potentially leading to use after releaseSimon Rettberg2015-11-231-2/+2
|
* [FUSE] Start refactoring so we can handle multithread fuseSimon Rettberg2015-11-217-109/+8Star
|
* [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
* [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-123-38/+62
| | | | | | | 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] 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
|
* Removed dnbd3_printClients, added clients to statistics json in rpc.Stephan Schwaer2015-05-047-32/+89
|
* [SERVER] PoC RPC interfaceschwaers2015-04-303-2/+31
|
* [SERVER] Added counters for received and sent bytes.Stephan Schwaer2015-04-276-2/+39
|
* [FUSE] Integrate into cmake build processSimon Rettberg2015-04-244-139/+3Star
|
* [SERVER] Correct debug/error messages in altserver.cSimon Rettberg2015-03-051-7/+7
|
* [SERVER] printf -> logadd, make USR2 trigger a log cycle, remove old fake ↵Simon Rettberg2015-02-237-74/+53Star
| | | | delay feature
* [SERVER] Overhauled loggingSimon Rettberg2015-02-2216-330/+429
| | | | | | - 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-228-29/+50
| | | | Some minor debugging code, mostly commented out
* [SERVER] Fix bug where checking if a request is cached would yield a false ↵Simon Rettberg2015-02-191-6/+7
| | | | negative
* [SERVER] Fix really stupid bug where received data gets written to random memorySimon Rettberg2015-02-191-1/+1
|
* [SERVER] Fix two minor bugs: Replication stall, integrity checker 100% CPU usageSimon Rettberg2015-02-042-2/+1Star
|
* [SERVER] Use shared file handle for readingSimon Rettberg2015-01-304-51/+49Star
|
* [SERVER] Implement proper keep alive for uplinksSimon Rettberg2015-01-282-27/+30
|
* [SERVER] Also fix fd leak if uplink_init failsSimon Rettberg2015-01-272-1/+2
|