Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [SERVER] Fix int overflows on 32bit builds in CRC generation | Simon Rettberg | 2018-03-16 | 1 | -1/+1 |
| | |||||
* | [SERVER] Make TSAN happy | Simon Rettberg | 2017-12-19 | 1 | -1/+3 |
| | |||||
* | [SERVER] Add multiple config options for limiting stuff | Simon Rettberg | 2017-11-08 | 1 | -1/+1 |
| | | | | | maxClients, maxImages, maxPayload, maxReplicationSize Refs #3231 | ||||
* | [SERVER] altservers: Tweak, cleanup, refactor, rename | Simon Rettberg | 2017-11-08 | 1 | -1/+1 |
| | |||||
* | [SERVER] Support finer control over replication when a proxy connects to a proxy | Simon Rettberg | 2017-11-02 | 1 | -2/+22 |
| | | | | | | | Introduce new flag in "select image" message to tell the uplink server whether we have background replication enabled or not. Also reject a connecting proxy if the connecting proxy uses BGR but we don't, as this would basically force the image to be replicated locally too. | ||||
* | [SERVER] Since fuse client assumed no backwards compat before v3, lie to clients | Simon Rettberg | 2017-11-01 | 1 | -1/+1 |
| | | | | | | If client reports protocol version < 3 on connect, just pretend we're at the same version. This sucks but we can't update servers before clients otherwise. :( | ||||
* | [*] Mark logadd() as printf-style function, fix errors that it revealed | Simon Rettberg | 2017-10-31 | 1 | -3/+4 |
| | | | | ...there were quite a few format string errors as it turns out :/ | ||||
* | [SERVER] net.c: Refactoring and renaming | Simon Rettberg | 2017-10-31 | 1 | -58/+33 |
| | | | | | | Less copy & paste for sendfile alternatives, changed naming of old dnbd3_* functions moved over from server.c a while ago. | ||||
* | [SERVER] Add AFL support | Simon Rettberg | 2017-10-30 | 1 | -1/+36 |
| | | | | | | | | | | | AFL is an instrumenting fuzzer. It expects to pass input to the program to be tested via command line (file name) or via stdin. This adds support for reading messages that normally would arrive via network directly from stdin. In this mode, the server is pretty useless otherwise. http://lcamtuf.coredump.cx/afl/ | ||||
* | [SERVER] net: Simplify check for HTTP | Simon Rettberg | 2017-10-26 | 1 | -10/+11 |
| | | | | | Pretty loose guesswork, but preventing the false positives would not lead to any meaningful result anyways, so why bother. | ||||
* | [SERVER] Improve handling of byte stats counters | Simon Rettberg | 2017-10-25 | 1 | -12/+12 |
| | | | | Less writes to variables, more up-to-date values for uplinks. | ||||
* | [SERVER] Fix types or add explicit casts everywhere we might have type ↵ | Simon Rettberg | 2017-10-24 | 1 | -28/+29 |
| | | | | conversion problems | ||||
* | [SERVER] Mute signedness warning on 32bit | Simon Rettberg | 2017-10-20 | 1 | -2/+2 |
| | |||||
* | [SERVER] Use monotonic clock for measuring time | Simon Rettberg | 2017-10-19 | 1 | -2/+3 |
| | | | | | Introduces new shared source unit timing.[ch] Closes #3214 | ||||
* | [*] Support hop-counting in request header, protocol version 3 | Simon Rettberg | 2017-10-17 | 1 | -12/+13 |
| | | | | | | | | | | | | | | We steal 8 bits from the request offset to count hops when requests get relayed by proxies. This still leaves plenty of bits for the offset (56 bits, supporting images of up to 72 petabytes). This is used to detect proxy cycles. The algorithm is not perfect but should prevent endless relays of the same request. This is backwards compatible to old clients and servers, as the server only ever sets the hopcount in relayed requests if the upstream server is using protocol version 3 or newer, and clients are automatically upwards compatible as there is practically no image larger than 74PB, so the newly introduced hop count field is always 0 even in requests from old clients. | ||||
* | [SERVER] Fix invalid pointer deref | Simon Rettberg | 2017-10-06 | 1 | -1/+1 |
| | |||||
* | [SERVER] Return client count when requesting stats but not client list | Simon Rettberg | 2017-10-06 | 1 | -1/+7 |
| | |||||
* | [SERVER] How about updating atime on connect? | Simon Rettberg | 2017-10-04 | 1 | -0/+3 |
| | |||||
* | [SERVER] Implement HTTP RPC that supports different queries and ACL | Simon Rettberg | 2017-10-01 | 1 | -6/+14 |
| | | | | | | | | | - ACL is defined in new file rpc.acl - Queries are still WIP, for now something like /query?q=stats&q=images /query?q=clients works, although the parsing is still ugly - Also supports HTTP keep-alive | ||||
* | [SERVER] Refactor: Move client list to net.* and isolate | Simon Rettberg | 2017-09-07 | 1 | -60/+256 |
| | |||||
* | [SERVER] Split server-only defs from config.h to serverconfig.h | Simon Rettberg | 2017-08-26 | 1 | -1/+1 |
| | |||||
* | [SERVER] Fix status query on big endian | Simon Rettberg | 2017-08-21 | 1 | -4/+7 |
| | |||||
* | [SERVER] Fix formatting | Simon Rettberg | 2016-03-22 | 1 | -19/+19 |
| | |||||
* | [SERVER] (FreeBSD) Unlock send mutex on sendfile error | Simon Rettberg | 2016-03-22 | 1 | -0/+1 |
| | |||||
* | running FreeBSD sendfile | Sebastian | 2016-02-11 | 1 | -13/+36 |
| | |||||
* | dnbd3server build success on freebsd :) | Sebastian | 2016-02-11 | 1 | -1/+14 |
| | |||||
* | cleanup commits | Sebastian | 2016-02-11 | 1 | -21/+7 |
| | |||||
* | [SERVER] BREAKING: Get rid of pseudo case-insensitivityv2.1 | Simon Rettberg | 2016-02-01 | 1 | -3/+3 |
| | | | | | | | | | | 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 | -12/+21 |
| | |||||
* | [SERVER] More fine grained locking for RPC; better error logging | Simon Rettberg | 2015-12-16 | 1 | -31/+35 |
| | |||||
* | [SERVER] Remove non-working images from list, plus refactoring | Simon Rettberg | 2015-12-15 | 1 | -73/+119 |
| | | | | | | | | | | 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] Support looking on disk if an unknown image is requested | Simon Rettberg | 2015-12-12 | 1 | -1/+1 |
| | |||||
* | [SERVER] Nullpad images virtually at runtime instead of padding the actual file | Simon Rettberg | 2015-12-10 | 1 | -7/+32 |
| | |||||
* | [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] 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 |
| | |||||
* | [SERVER] Add image ID for easier handling in RPC, export RID via RPC, make ↵ | Simon Rettberg | 2015-05-08 | 1 | -1/+1 |
| | | | | names of the byte count fields in RPC consistent | ||||
* | [Server] Added statistics of images and uptime to json. | Stephan Schwaer | 2015-05-05 | 1 | -10/+3 |
| | |||||
* | Removed dnbd3_printClients, added clients to statistics json in rpc. | Stephan Schwaer | 2015-05-04 | 1 | -3/+17 |
| | |||||
* | [SERVER] PoC RPC interface | schwaers | 2015-04-30 | 1 | -2/+6 |
| | |||||
* | [SERVER] Added counters for received and sent bytes. | Stephan Schwaer | 2015-04-27 | 1 | -0/+12 |
| | |||||
* | [SERVER] printf -> logadd, make USR2 trigger a log cycle, remove old fake ↵ | Simon Rettberg | 2015-02-23 | 1 | -3/+0 |
| | | | | delay feature | ||||
* | [SERVER] Overhauled logging | Simon Rettberg | 2015-02-22 | 1 | -21/+21 |
| | | | | | | - 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 | 1 | -1/+1 |
| | | | | 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] Use shared file handle for reading | Simon Rettberg | 2015-01-30 | 1 | -24/+27 |
| | |||||
* | [SERVER] Crank up warning levels of gcc and fix them all (mostly sign ↵ | Simon Rettberg | 2015-01-14 | 1 | -1/+1 |
| | | | | | | | 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] Set client connection timeout in client thread | Simon Rettberg | 2015-01-07 | 1 | -0/+2 |
| | |||||
* | [SERVER] Get rid of epoll in alservers.c, make valgrind+gdb happy by ↵ | Simon Rettberg | 2015-01-06 | 1 | -1/+2 |
| | | | | handling signals even though we block them |