Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | running FreeBSD sendfile | Sebastian | 2016-02-11 | 1 | -13/+36 | |
| | ||||||
* | dnbd3server build success on freebsd :) | Sebastian | 2016-02-11 | 7 | -27/+56 | |
| | ||||||
* | cleanup commits | Sebastian | 2016-02-11 | 17 | -121/+39 | |
| | ||||||
* | [SHARED] signal.h -> fdsignal.h | Simon Rettberg | 2016-02-10 | 6 | -6/+6 | |
| | ||||||
* | First steps in make signals more abstract from the underlying mechanism; ↵ | Simon Rettberg | 2016-02-05 | 5 | -96/+71 | |
| | | | | | | | | | | 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.1 | Simon Rettberg | 2016-02-01 | 8 | -52/+39 | |
| | | | | | | | | | | 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 races | Simon Rettberg | 2016-01-11 | 11 | -90/+159 | |
| | ||||||
* | [SERVER] Performance: Optimized some functions (gprof) | Simon Rettberg | 2015-12-17 | 4 | -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() unlocked | Simon Rettberg | 2015-12-17 | 2 | -15/+18 | |
| | ||||||
* | [SERVER] Cancel scanning of image dir if _shutdown is set | Simon Rettberg | 2015-12-16 | 2 | -4/+8 | |
| | | | | So you can cancel image loading on startup via Ctrl-C | |||||
* | [SERVER] Fix image_calcBlockCrc32: Use 64bit for fileSize param | Simon Rettberg | 2015-12-16 | 1 | -22/+27 | |
| | | | | Using uint32_t for fileSize is not too clever :( | |||||
* | [SERVER] More fine grained locking for RPC; better error logging | Simon Rettberg | 2015-12-16 | 7 | -68/+143 | |
| | ||||||
* | [SERVER] Update config example | Simon Rettberg | 2015-12-15 | 1 | -2/+6 | |
| | ||||||
* | [SERVER] Remove non-working images from list, plus refactoring | Simon Rettberg | 2015-12-15 | 6 | -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 configurable | Simon Rettberg | 2015-12-14 | 3 | -3/+18 | |
| | ||||||
* | [SERVER] Free memory on exit to get new valgrind high score | Simon Rettberg | 2015-12-14 | 1 | -1/+4 | |
| | ||||||
* | [SERVER] Disallow images starting with "." now that we allow load-on-demand | Simon Rettberg | 2015-12-14 | 1 | -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 requested | Simon Rettberg | 2015-12-12 | 5 | -28/+116 | |
| | ||||||
* | [SERVER] Nullpad images virtually at runtime instead of padding the actual file | Simon Rettberg | 2015-12-10 | 6 | -173/+158 | |
| | ||||||
* | [SERVER] Remove redundant range check | Simon Rettberg | 2015-12-09 | 1 | -8/+0 | |
| | ||||||
* | [SERVER] Use error code constants instead of magic values | Simon Rettberg | 2015-12-07 | 1 | -4/+4 | |
| | ||||||
* | [SERVER] Add missing nullptr check from refactoring, improve locking | Simon Rettberg | 2015-12-07 | 1 | -9/+11 | |
| | ||||||
* | [SERVER] Update includes for moved log.h | Simon Rettberg | 2015-12-02 | 10 | -11/+11 | |
| | ||||||
* | [FUSE] Compiles again | Simon Rettberg | 2015-11-30 | 2 | -238/+0 | |
| | ||||||
* | [FUSE] Mid-refactoring, does not compile | Simon Rettberg | 2015-11-24 | 8 | -306/+6 | |
| | ||||||
* | [SERVER] Fix race condition potentially leading to use after release | Simon Rettberg | 2015-11-23 | 1 | -2/+2 | |
| | ||||||
* | [FUSE] Start refactoring so we can handle multithread fuse | Simon Rettberg | 2015-11-21 | 7 | -109/+8 | |
| | ||||||
* | [SERVER] Improve image related locking | Simon Rettberg | 2015-11-20 | 1 | -1/+7 | |
| | ||||||
* | [SERVER] Check uplink server for newer revision than local if client ↵ | Simon Rettberg | 2015-11-11 | 1 | -15/+22 | |
| | | | | requests rid=0 | |||||
* | [SERVER] Fix integer overflow of global bytesReceived getter | Simon Rettberg | 2015-05-13 | 1 | -1/+1 | |
| | ||||||
* | [SERVER] Reload images in another thread when triggered by signal | Simon Rettberg | 2015-05-12 | 3 | -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 Schwaer | 2015-05-08 | 3 | -3/+3 | |
| | ||||||
* | [SERVER] Rename some more RPC fields | Simon Rettberg | 2015-05-08 | 2 | -2/+2 | |
| | ||||||
* | [SERVER] Add image ID for easier handling in RPC, export RID via RPC, make ↵ | Simon Rettberg | 2015-05-08 | 4 | -11/+17 | |
| | | | | names of the byte count fields in RPC consistent | |||||
* | [SERVER] Fix premature connection close for RPC replies | Simon Rettberg | 2015-05-05 | 3 | -7/+40 | |
| | ||||||
* | [Server] Added statistics of images and uptime to json. | Stephan Schwaer | 2015-05-05 | 8 | -48/+35 | |
| | ||||||
* | Removed dnbd3_printClients, added clients to statistics json in rpc. | Stephan Schwaer | 2015-05-04 | 7 | -32/+89 | |
| | ||||||
* | [SERVER] PoC RPC interface | schwaers | 2015-04-30 | 3 | -2/+31 | |
| | ||||||
* | [SERVER] Added counters for received and sent bytes. | Stephan Schwaer | 2015-04-27 | 6 | -2/+39 | |
| | ||||||
* | [FUSE] Integrate into cmake build process | Simon Rettberg | 2015-04-24 | 4 | -139/+3 | |
| | ||||||
* | [SERVER] Correct debug/error messages in altserver.c | Simon Rettberg | 2015-03-05 | 1 | -7/+7 | |
| | ||||||
* | [SERVER] printf -> logadd, make USR2 trigger a log cycle, remove old fake ↵ | Simon Rettberg | 2015-02-23 | 7 | -74/+53 | |
| | | | | delay feature | |||||
* | [SERVER] Overhauled logging | Simon Rettberg | 2015-02-22 | 16 | -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 volatile | Simon Rettberg | 2015-02-22 | 8 | -29/+50 | |
| | | | | Some minor debugging code, mostly commented out | |||||
* | [SERVER] Fix bug where checking if a request is cached would yield a false ↵ | Simon Rettberg | 2015-02-19 | 1 | -6/+7 | |
| | | | | negative | |||||
* | [SERVER] Fix really stupid bug where received data gets written to random memory | Simon Rettberg | 2015-02-19 | 1 | -1/+1 | |
| | ||||||
* | [SERVER] Fix two minor bugs: Replication stall, integrity checker 100% CPU usage | Simon Rettberg | 2015-02-04 | 2 | -2/+1 | |
| | ||||||
* | [SERVER] Use shared file handle for reading | Simon Rettberg | 2015-01-30 | 4 | -51/+49 | |
| | ||||||
* | [SERVER] Implement proper keep alive for uplinks | Simon Rettberg | 2015-01-28 | 2 | -27/+30 | |
| | ||||||
* | [SERVER] Also fix fd leak if uplink_init fails | Simon Rettberg | 2015-01-27 | 2 | -1/+2 | |
| |