Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [SERVER] BREAKING: Get rid of pseudo case-insensitivityv2.1 | Simon Rettberg | 2016-02-01 | 1 | -17/+13 |
| | | | | | | | | | | 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 | 1 | -33/+46 |
| | |||||
* | [SERVER] Performance: Optimized some functions (gprof) | Simon Rettberg | 2015-12-17 | 1 | -7/+18 |
| | | | | | | | 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 | 1 | -7/+12 |
| | |||||
* | [SERVER] Cancel scanning of image dir if _shutdown is set | Simon Rettberg | 2015-12-16 | 1 | -2/+4 |
| | | | | 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 | 1 | -13/+34 |
| | |||||
* | [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 | 1 | -51/+175 |
| | | | | | | | | | | 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] 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 | 1 | -21/+108 |
| | |||||
* | [SERVER] Nullpad images virtually at runtime instead of padding the actual file | Simon Rettberg | 2015-12-10 | 1 | -152/+113 |
| | |||||
* | [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 | 1 | -1/+1 |
| | |||||
* | [FUSE] Mid-refactoring, does not compile | Simon Rettberg | 2015-11-24 | 1 | -1/+1 |
| | |||||
* | [FUSE] Start refactoring so we can handle multithread fuse | Simon Rettberg | 2015-11-21 | 1 | -2/+2 |
| | |||||
* | [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] Reload images in another thread when triggered by signal | Simon Rettberg | 2015-05-12 | 1 | -31/+48 |
| | | | | | | | 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 | 1 | -1/+1 |
| | |||||
* | [SERVER] Rename some more RPC fields | Simon Rettberg | 2015-05-08 | 1 | -1/+1 |
| | |||||
* | [SERVER] Add image ID for easier handling in RPC, export RID via RPC, make ↵ | Simon Rettberg | 2015-05-08 | 1 | -2/+5 |
| | | | | names of the byte count fields in RPC consistent | ||||
* | [Server] Added statistics of images and uptime to json. | Stephan Schwaer | 2015-05-05 | 1 | -13/+12 |
| | |||||
* | [FUSE] Integrate into cmake build process | Simon Rettberg | 2015-04-24 | 1 | -1/+1 |
| | |||||
* | [SERVER] printf -> logadd, make USR2 trigger a log cycle, remove old fake ↵ | Simon Rettberg | 2015-02-23 | 1 | -22/+23 |
| | | | | delay feature | ||||
* | [SERVER] Overhauled logging | Simon Rettberg | 2015-02-22 | 1 | -42/+42 |
| | | | | | | - 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 | ||||
* | [SERVER] Use shared file handle for reading | Simon Rettberg | 2015-01-30 | 1 | -17/+15 |
| | |||||
* | [SERVER] Implement proper keep alive for uplinks | Simon Rettberg | 2015-01-28 | 1 | -10/+14 |
| | |||||
* | [SERVER] Also fix fd leak if uplink_init fails | Simon Rettberg | 2015-01-27 | 1 | -1/+1 |
| | |||||
* | [SERVER] Fix automatic proxying to use supplied connection; fix race ↵ | Simon Rettberg | 2015-01-27 | 1 | -14/+16 |
| | | | | condition in uplink_init | ||||
* | [SERVER] Crank up warning levels of gcc and fix them all (mostly sign ↵ | Simon Rettberg | 2015-01-14 | 1 | -11/+12 |
| | | | | | | | 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] Big code cleanup, refactoring, minor bugfixing | Simon Rettberg | 2015-01-06 | 1 | -34/+49 |
| | |||||
* | [SERVER] Dead code removal, minor performance tweaks, refactoring, etc. | Simon Rettberg | 2015-01-02 | 1 | -2/+2 |
| | |||||
* | [SERVER] Use stdbool.h for booleans; minor refactoring of variable and ↵ | Simon Rettberg | 2014-12-31 | 1 | -98/+97 |
| | | | | function names | ||||
* | [SERVER] Improve replication and reconnecting behaviour | Simon Rettberg | 2014-12-22 | 1 | -1/+1 |
| | |||||
* | Improve uplink handling, add code to debug thread creation/destruction, ↵ | Simon Rettberg | 2014-06-16 | 1 | -9/+12 |
| | | | | change stupid convention of freeDiskSpace returning 0 on error, which is ambiguous to the disk simply being full... | ||||
* | Fixed the amazing infinite loop I introduced when refactoring | Simon Rettberg | 2014-01-11 | 1 | -8/+18 |
| | |||||
* | [SERVER] Fix old image deletion, make image_load a bit nicer | Simon Rettberg | 2014-01-09 | 1 | -102/+146 |
| | |||||
* | [SERVER] Clean up properly when deleting an image | Simon Rettberg | 2013-12-06 | 1 | -1/+9 |
| | |||||
* | [SERVER] Fix free disk space check | Simon Rettberg | 2013-12-04 | 1 | -0/+4 |
| | |||||
* | [SERVER] Deletion restrictions | Simon Rettberg | 2013-11-20 | 1 | -1/+1 |
| | |||||
* | [SERVER] Stümperhaften double-free gefixt | Simon Rettberg | 2013-11-19 | 1 | -3/+3 |
| | |||||
* | [SERVER] Forgot a return that lead to locking messup :/ | Simon Rettberg | 2013-11-13 | 1 | -0/+1 |
| | |||||
* | [SERVER] Don't lock on image array when saving cache maps | Simon Rettberg | 2013-11-13 | 1 | -2/+4 |
| | |||||
* | [SERVER] Mark image complete if so | Simon Rettberg | 2013-11-13 | 1 | -0/+5 |
| | |||||
* | [SERVER] Save cache maps every 30 mins | Simon Rettberg | 2013-11-12 | 1 | -1/+13 |
| | |||||
* | Merge branch 'simon' of dnbd3:dnbd3 into simon | Simon Rettberg | 2013-11-12 | 1 | -7/+7 |
|\ | | | | | | | | | Conflicts: src/server/altservers.c | ||||
| * | [SERVER] Minor tweaks here and there | Simon Rettberg | 2013-11-10 | 1 | -7/+7 |
| | | |||||
* | | [SERVER] Fix embarrassing deadlock when deleting old images | Simon Rettberg | 2013-11-12 | 1 | -9/+9 |
|/ | |||||
* | [SERVER] Fetch correct revision after cloning | Simon Rettberg | 2013-10-01 | 1 | -3/+3 |
| |