summaryrefslogtreecommitdiffstats
path: root/src/config.h
Commit message (Collapse)AuthorAgeFilesLines
* [*] Support hop-counting in request header, protocol version 3Simon Rettberg2017-10-171-1/+2
| | | | | | | | | | | | | | 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.
* [*] Continue splitting #defines to clientconfig.h etc.Simon Rettberg2017-09-021-31/+0Star
|
* [SERVER] Split server-only defs from config.h to serverconfig.hSimon Rettberg2017-08-261-25/+0Star
|
* SERVER_MAX_CLIENTS: 400 -> 4000konrad2016-07-191-1/+1
|
* [KERNEL/CLIENT] Several minor tweaks and changesSimon Rettberg2016-01-111-1/+2
| | | | | | | | | | - Disable panic timeout that reports errors to block layer by default - Get rid of "is_server" used by old proxy mode, introduce "honor_server_alts" that just controls whether we use alts provided by the server - Allow switching servers when we only have 3 RTT measurements - If using alts provided by server, don't ignore those that come from other servers than the initial one
* [SERVER] Remove non-working images from list, plus refactoringSimon Rettberg2015-12-151-2/+2
| | | | | | | | | | 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)
* [FUSE] It works! Kinda...Simon Rettberg2015-11-301-0/+1
|
* [FUSE] Mid-refactoring, does not compileSimon Rettberg2015-11-241-1/+1
|
* [SERVER] Fix automatic proxying to use supplied connection; fix race ↵Simon Rettberg2015-01-271-1/+1
| | | | condition in uplink_init
* [SERVER] Configurable client timeout, adaptive replication speed (to be ↵Simon Rettberg2014-12-221-1/+0Star
| | | | tested against varying bw/latency), retry sendfile call if ret <= len
* [KERNEL] Improved read timeout handlingSimon Rettberg2013-12-201-1/+1
|
* [SERVER] Decrease cache map save interval for nowSimon Rettberg2013-11-131-1/+2
|
* [SERVER] Save cache maps every 30 minsSimon Rettberg2013-11-121-0/+1
|
* [SERVER] Minor tweaks here and thereSimon Rettberg2013-11-101-8/+9
|
* [KERNEL] Slow down with RTT measurements after 30 secondsSimon Rettberg2013-10-241-2/+4
| | | | | | | Right after connecting, all servers will be polled every 4 seconds for 30 seconds, so we get 7 data points per alt-server. If no better server is found during this time, further RTT measurements will be done every 22 seconds, to put less load on the network in the long run.
* [SERVER] More debugging, more safety checks, disable alt servers that fail ↵Simon Rettberg2013-09-161-1/+4
| | | | too often
* [SERVER] Copy CRC-32 list from uplink server if availableSimon Rettberg2013-08-281-1/+1
| | | | | Split up helper.c, move file/disk related functions to fileutil.c Uplink: Make sure relayed requests are at least 1MiB
* [SERVER] WIP: On-the-fly image cloningSimon Rettberg2013-08-231-0/+2
|
* [SERVER] Improve proxy mode, implement integrity check in proxy modeSimon Rettberg2013-08-121-1/+1
|
* [SERVER] Uplink handing complete (untested, as alt servers can't be defined ↵Simon Rettberg2013-07-311-6/+7
| | | | yet, so prepare for lots of fixes ;))
* Work in progress: uplinksr2013-07-251-1/+1
|
* ...Working on proxy mode...sr2013-07-251-0/+9
|
* Completely remove glib as dependencysr2013-07-181-4/+0Star
|
* Rewriting....sr2013-07-081-1/+8
|
* [SERVER] Add IPv6 support (clients and RPC connections)sr2013-01-151-1/+2
|
* [SERVER] Refactor codesr2012-12-191-3/+1Star
| | | | [SERVER] Return List of Alt Servers on RPC_IMG_LIST
* [SERVER] Add list of trusted servers and namespaces (load, display)sr2012-09-021-1/+1
|
* [KERNEL] Tell server whether we're a client or a server in proxy modesr2012-09-011-3/+3
| | | | | [KERNEL] SysFS: Return empty string for current_server if not connected [SERVER] Code refactoring
* [SERVER] Added soft and hard timeouts for image deletion: reject any new ↵sr2012-08-311-2/+1Star
| | | | | | | clients for an image where the soft timeout has been reached, kill all clients for an image where the hard timeout has been reached and remove it from the server. Check for the hard timeout every five minutes [SERVER] Re-Implement image deletion to work with image names instead of vids [SERVER] Add helper functions to simplify dealing with libxml2
* [SERVER] Set _FILE_OFFSET_BITS=64 so that images >4GiB will be handled ↵sr2012-08-301-1/+1
| | | | | | | | | properly on 32bit [SERVER] Change IPC interface to be able to handle more than 1 request per connection [SERVER] Change IPC interface to use select() so it can handle multiple connections at the same time [SERVER] Re-Implement dnbd3_add_image() to work with image list [SERVER] Add lots of sanity/safety checks and error messages when loading/adding an image
* [KERNEL] Add IOCTLs to add and remove serverssr2012-08-281-3/+12
| | | | | [KERNEL] Detect dead idle connection earlier [KERNEL] Improved debug output
* [KERNEL] Make rtt threshold relativesr2012-08-251-1/+2
|
* [*] Cleanup, comments, more error checkssr2012-08-241-5/+22
| | | | | | | | [SERVER] Fix a few off-by-one bugs [SERVER] Make log available through IPC [KERNEL] Hot-Swap to faster connection on load-balance [KERNEL] Report I/O error to block layer if no server replies within a given time frame [*] Modified network protocol to handle volume names instead of ids
* [SERVER] IPC over TCPJohann Latocha2012-07-251-0/+1
|
* [SERVER] Set groupid and permissions on ipc socketJohann Latocha2012-07-181-3/+4
|
* [KERNEL] RTT bug fixedJohann Latocha2012-05-111-1/+1
|
* [KERNEL] New RTT thres.Johann Latocha2012-05-111-1/+1
|
* [KERNEL] rtt measurement improvedJohann Latocha2012-05-081-0/+1
|
* [KERNEL] Read ahead increasedJohann Latocha2012-02-231-0/+1
|
* [ALL] Bugs, bugs, bugs...Johann Latocha2012-02-221-1/+1
|
* [KERNEL] SysFS interface added (/sys/block/dnbd*/net/)Johann Latocha2012-02-211-1/+1
|
* [KERNEL] Major bug fixesJohann Latocha2012-02-161-6/+8
|
* [KERNEL] Switch server on connection lostJohann Latocha2012-02-161-1/+2
|
* [KERNEL] Kernel panic while server is gone fixedJohann Latocha2012-02-151-1/+2
|
* [CLIENT] Get host by nameJohann Latocha2012-02-091-0/+1
|
* [ALL] RefactoringJohann Latocha2012-02-081-0/+1
| | | | | [ALL] Send and receive servers [TODO] Config file reloading is broken
* [CLIENT] Connecting via config fileJohann Latocha2012-02-031-1/+2
|
* [SERVER] IPC over unix socketJohann Latocha2012-02-021-1/+1
| | | | [SERVER] Print connected clients and used images
* [SERVER] Parsing config file with glibJohann Latocha2012-02-021-6/+1Star
| | | | | [KERNEL] Bugfixes [CLIENT] Using vid and rid
* [SERVER] Timeout for client socketsJohann Latocha2012-01-301-0/+2
| | | | [KERNEL] Send keep alive