summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* [KERNEL] Add support for Linux kernels without blk-mq (e.g. CentOS 7)Manuel Bentele2021-06-165-20/+259
|
* server.conf: Update uplinkTimeout to match default valuev3.10Simon Rettberg2021-05-111-1/+1
|
* [SERVER] Add minRequestSize: Enlarge relayed requestsSimon Rettberg2021-05-113-16/+48
| | | | | | | | | | Any request from a client being relayed to an uplink server will have its size extended to this value. It will also be applied to background replication requests, if the BGR mode is FULL. As request coalescing is currently very primitive, this setting should usually be left diabled, and bgrWindowSize used instead, if appropriate. If you enable this, set it to something large (1M+), or it might have adverse effects.
* [SERVER] Fix UBSimon Rettberg2021-05-111-1/+1
|
* [SERVER] Honor uplinkTimeout directly when connecting to alt-serverSimon Rettberg2021-05-102-5/+3Star
|
* [KERNEL] Improve debug output in net.cSimon Rettberg2021-04-203-7/+13
|
* [KERNEL] Even more RTT fakery on manual server switchSimon Rettberg2021-04-201-5/+12
|
* [KERNEL] Clean alt-server list first when connectingSimon Rettberg2021-04-161-11/+8Star
| | | | | | | When establishing a new connection on a disconnected device, the old list of alt-servers was retained. This would lead to us connecting to the wrong server, as the number of newly passed servers was used when looping over the list of alt-servers to actually connect.
* [KERNEL] Fix Linter errorsManuel Bentele2021-04-162-3/+5
|
* [KERNEL] Removes duplicate word 'of' in license headersManuel Bentele2021-04-1619-19/+19
|
* [SERVER] Mark uplink requests with BGR/prefetch flags and handle themSimon Rettberg2021-04-141-5/+20
| | | | | | | | | Incoming requests from clients might actually be prefetch jobs from another downstream proxy. Don't do prefetching for those, as this would cascade upwars in the proxy chain (prefetch for a prefetch of a prefetch) Incoming requests might also be background replication. Don't relay those if we're not configured for background replication as well.
* [SERVER] Set TCP_NODELAY on outgoing connectionsSimon Rettberg2021-04-141-1/+4
| | | | | | | This will send all (block) requests immediately at sometimes more overhead, but slighly less delays. Since the outgoing connection on a client is only used very lightly, this tradeoff should always make sense.
* [SERVER] Make prefetching synchronousSimon Rettberg2021-04-144-168/+228
| | | | | | | | | There is a race condition where we process the next request from the same client faster than the OS will schedule the async prefetch job, rendering it a NOOP in the best case (request ranges match) or fetching redundant data from the upstream server (prefetch range is larger than actual request by client). Make prefetching synchronous to prevent this race condition.
* [CLIENT] Use SO_GETPEERCRED instead of braindead setuid crapSimon Rettberg2021-04-141-56/+69
| | | | | | If you need daemon mode, run as root with --daemon, normal users can then request devices to be connected using the same binary WITHOUT havind the suid bit set on it.
* [KERNEL] Deduplicate code, clean up, split into functionsSimon Rettberg2021-04-142-402/+339Star
|
* [KERNEL] Fix CMD name in debug messagesSimon Rettberg2021-04-141-3/+3
|
* [KERNEL] Improve socket connectSimon Rettberg2021-03-291-34/+59
| | | | | | | | - Remove the ugly timeout hack that apparently isn't required after all. - Set a few socket options that appear to make sense in out use case (no linger, only one SYN retry, NODELAY). - Adapt socket timeout in panic mode, in case we're on a very bad connection.
* [KERNEL] Overhaul sysfs filesSimon Rettberg2021-03-262-40/+18Star
| | | | | | Remove superflous, reduntant or otherwise useless information. Use space as separator instead of comma for better readability and easier parsing in shell etc.
* [KERNEL] Implement best_count logic for load balancingSimon Rettberg2021-03-265-23/+49
| | | | | | | Similar logic already exists in the fuse client: Count how many times in a row a server was fastest when measuring RTTs, and lower the switching threshold more the higher the count gets.
* [KERNEL] Use sockaddr instead of dnbd3_host_t where possibleSimon Rettberg2021-03-246-241/+216Star
| | | | | | | | Convert dnbd3_host_t to struct sockaddr immediately when adding alt servers, so we don't have to convert it every time we establish a connection. Additionally we can now use %pISpc in printf-like functions instead of having if/else constructs whenever we want to print an address.
* [KERNEL] Set fake low RTT after manual server switchSimon Rettberg2021-03-232-0/+8
| | | | | This avoids automatically switching back right after adding and switching to a server.
* [KERNEL] Synchronous add/remove of alt-servers via IOCTLSimon Rettberg2021-03-234-165/+229
|
* [SERVER] Fix compiler warningSimon Rettberg2021-03-221-1/+1
|
* [BUILD] Fix build issue if version information (Git tag) is missingManuel Bentele2021-03-174-18/+60
| | | | | | | | | | | | The software version for packaging purposes is consituted from the following rules: - If the version information (from Git tags or the embedded version header file) is available, the version number for the packaging is set to those found version information. - If there isn't any version information available (e.g. missing Git tags), the version number for the packaging is set to '0.0' to represent an unkown version number.
* [KERNEL] Enable assertions if CONFIG_DEBUG_DRIVER is setManuel Bentele2021-03-161-0/+6
|
* [KERNEL] Refactor code to satisfy Linux kernel code styleManuel Bentele2021-03-1211-621/+535Star
|
* [BUILD] Build picohttpparser as independent libraryManuel Bentele2021-03-113-15/+15
|
* [BUILD] Enable lint targets if lint programs are foundManuel Bentele2021-03-118-59/+663
|
* [BUILD] Add Github workflow to validate (lint) source codeManuel Bentele2021-03-051-0/+34
|
* [BUILD] Disable lint/formatting for non-kernel for nowSimon Rettberg2021-03-052-23/+43
|
* [BUILD] Make lint/format optionalSimon Rettberg2021-03-051-1/+13
|
* [BUILD] Add support in CMake to validate (lint) the source codeManuel Bentele2021-03-0413-33/+321
|
* [BUILD] Add build support for Github actionsManuel Bentele2021-03-022-1/+66
|
* [DOC] replace tabs with whitespacesManuel Bentele2021-02-101-16/+16
|
* [BUILD] add support for AlmaLinux 8Manuel Bentele2021-02-101-0/+18
|
* [BUILD] add support for FreeBSD 12.2 and upcoming 13.xManuel Bentele2020-12-141-3/+3
|
* [BUILD] add support for Linux LTS kernel 5.10.xManuel Bentele2020-12-141-2/+2
|
* [FUSE] Fix build: Add dnbd3-build to dependenciesSimon Rettberg2020-12-081-1/+1
|
* [BUILD] Fix dnbd3-client build, Fix source-only buildSimon Rettberg2020-12-022-2/+2
|
* [BUILD] Include branch and build timestamp in binariesSimon Rettberg2020-12-029-14/+29
|
* [CLIENT] print help and version number correctlyManuel Bentele2020-12-021-8/+5Star
| | | | | | This change prevents the dnbd3-client to print the help text twice if the help parameter is submitted. In addition to that, correct exit codes are set after the help text is printed and the program terminates.
* [SERVER] replaced non-existent FUSE define to match CMake's build definesManuel Bentele2020-11-271-3/+3
|
* [SERVER] Fix warningsSimon Rettberg2020-11-234-7/+9
|
* [BUILD] remove automatic search of includes for 'libatomic'Manuel Bentele2020-11-231-10/+2Star
| | | | | | This patch removes the automatic search of includes for 'libatomic' since the includes for this library are part of the C11 standard shipped with each compiler.
* [BUILD] update search paths for 'libatomic' to support build on FreeBSDManuel Bentele2020-11-233-3/+11
|
* [BUILD] add CMake find package search to find 'libatomic' automaticallyManuel Bentele2020-11-232-0/+53
|
* [BUILD] increase minimum CMake version to be compliant with CMake 3.19.xManuel Bentele2020-11-231-1/+1
|
* [KERNEL] Fix race condition for request_queuereceive in receive threadSimon Rettberg2020-11-201-8/+7Star
| | | | | | | | | | Formerly, the request that was about to be received was looked up in the receive queue without removing it, then the request payload was received from the socket while the lock was not being held, and finally, the lock was required again and the request removed from the queue. This is dangrous as another thread can concurrently take the request from the queue while the receive thread reads the payload from the socket, leading to a double-free by calling blk_mq_end_request twice.
* [KERNEL] Cleanup thread cleanup, fix closing of device when busySimon Rettberg2020-11-203-90/+124
|
* [BUILD] add support for atomic operations not supported by hardwareManuel Bentele2020-11-203-3/+17
| | | | | | | | | | | | | | This change links the dnbd3-server with 'libatomic' to add support for atomic operations not supported by hardware (especially 32-bit hardware architectures, such as ARM). Thus the dnbd3-server can also run on a Raspberry Pi 1 running Rasperry Pi OS. Note that the dnbd3-server is still linked to the libatomic, even if the hardware supports atomic operations. In this case, the compiler resolves atomic operations and replaces them automatically with specific built-in functions. This unnecessary linkage can be removed in the future if the GCC supports an upcoming option called automatic linking of libatomic (--enable-autolink-libatomic).