summaryrefslogtreecommitdiffstats
path: root/src/kernel/dnbd3_main.c
Commit message (Collapse)AuthorAgeFilesLines
* [KERNEL] Removes duplicate word 'of' in license headersManuel Bentele2021-04-161-1/+1
|
* [KERNEL] Implement best_count logic for load balancingSimon Rettberg2021-03-261-2/+5
| | | | | | | 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-241-22/+81
| | | | | | | | 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-231-0/+1
| | | | | This avoids automatically switching back right after adding and switching to a server.
* [KERNEL] Synchronous add/remove of alt-servers via IOCTLSimon Rettberg2021-03-231-5/+77
|
* [KERNEL] Refactor code to satisfy Linux kernel code styleManuel Bentele2021-03-121-22/+20Star
|
* [KERNEL] Cleanup thread cleanup, fix closing of device when busySimon Rettberg2020-11-201-1/+2
|
* [KERNEL] add manual switching of dnbd3-server to specified serverManuel Bentele2020-11-101-0/+23
| | | | | | This patch adds the feature to manually switch the dnbd3-server to a specified server. The switching is implemented by the use of the ioctl call SWITCH.
* [BUILD] add CMake targets to build binary and source packages with CPackManuel Bentele2020-10-221-2/+2
| | | | | | | | | | | This patch adds the following CMake targets - package - source to build bundeled packages. Those packages contain either all built binary artifacts or all source files for source code distribution. Both CMake targets are available in Release build configuration.
* [BUILD] set build type and stop Release build if repository is dirtyManuel Bentele2020-10-191-3/+3
|
* [BUILD] rewrite CMake build system to track changes of source filesManuel Bentele2020-10-161-0/+93
This change restructures the source code directories, separates shared form non-shared application code and adds CMake dependencies. These dependencies allow the tracking of changes and trigger a rebuild of those build targets where changed files are involved. WARNING: Note that the support of the DNBD3_SERVER_AFL build option is not supported yet. Thus, the option should be never turned on.