Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | [FUSE] Handle SIGINT/SIGTERM to abort pending reads | Simon Rettberg | 2015-12-17 | 2 | -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 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 | |
| | ||||||
* | [FUSE] Fix forking mode (not passing -f) by not spawning threads before ↵ | Simon Rettberg | 2015-12-16 | 3 | -30/+53 | |
| | | | | entering fuse_main | |||||
* | [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 | 8 | -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 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 | |
| | ||||||
* | [FUSE] Make valgrind happy by initializing memory and not calling close() on -1 | Simon Rettberg | 2015-12-10 | 1 | -2/+4 | |
| | ||||||
* | [FUSE] Fix stack overflow caused by stats data | Simon Rettberg | 2015-12-10 | 1 | -3/+5 | |
| | ||||||
* | [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 | |
| | ||||||
* | [FUSE] Fix formatting in /status output | Simon Rettberg | 2015-12-07 | 1 | -6/+4 | |
| | ||||||
* | [FUSE] Fix embarrassing memcpy over two different structs | Simon Rettberg | 2015-12-03 | 1 | -3/+6 | |
| | ||||||
* | [FUSE] Add --log option | Simon Rettberg | 2015-12-03 | 1 | -12/+29 | |
| | ||||||
* | [FUSE] Try to get caching right | Simon Rettberg | 2015-12-03 | 1 | -2/+3 | |
| | ||||||
* | [SERVER] Update includes for moved log.h | Simon Rettberg | 2015-12-02 | 10 | -11/+11 | |
| | ||||||
* | [FUSE] Add virtual status file | Simon Rettberg | 2015-12-02 | 5 | -16/+140 | |
| | ||||||
* | [FUSE] Request alt servers from connected server | Simon Rettberg | 2015-12-02 | 2 | -26/+100 | |
| | ||||||
* | [FUSE] Clean up command line handling | Simon Rettberg | 2015-12-02 | 1 | -37/+93 | |
| | ||||||
* | [FUSE] Remove debug code that forced server switches all the time | Simon Rettberg | 2015-12-01 | 1 | -2/+1 | |
| | ||||||
* | [FUSE] Fix losing requests on server change | Simon Rettberg | 2015-12-01 | 2 | -16/+26 | |
| | ||||||
* | [FUSE] Stability improvements, runs for longer than a couple secs now :) | Simon Rettberg | 2015-12-01 | 4 | -55/+75 | |
| | ||||||
* | [FUSE] It works! Kinda... | Simon Rettberg | 2015-11-30 | 7 | -206/+226 | |
| | ||||||
* | [FUSE] Compiles again | Simon Rettberg | 2015-11-30 | 6 | -59/+4 | |
| | ||||||
* | [FUSE] Mid-refactoring, does not compile | Simon Rettberg | 2015-11-24 | 15 | -86/+360 | |
| | ||||||
* | [SERVER] Fix race condition potentially leading to use after release | Simon Rettberg | 2015-11-23 | 1 | -2/+2 | |
| | ||||||
* | [FUSE] Refactoring | Simon Rettberg | 2015-11-23 | 1 | -51/+69 | |
| | ||||||
* | [FUSE] Start refactoring so we can handle multithread fuse | Simon Rettberg | 2015-11-21 | 15 | -26/+261 | |
| | ||||||
* | [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 | |||||
* | [KERNEL] Add support for kernel 4.2.x | Simon Rettberg | 2015-10-13 | 2 | -2/+12 | |
| | ||||||
* | [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] Fix compiler warnings, adjust file permissions, change fuse file name ↵ | Simon Rettberg | 2015-04-24 | 1 | -32/+34 | |
| | | | | to "img" |