summaryrefslogtreecommitdiffstats
path: root/src/kernel/dnbd3.h
Commit message (Collapse)AuthorAgeFilesLines
* [BUILD] rewrite CMake build system to track changes of source filesManuel Bentele2020-10-161-89/+0Star
| | | | | | | | | | 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.
* [KERNEL] convert debug messages and clean up codeManuel Bentele2020-08-281-0/+2
| | | | | | | | | | | | This change converts all debug messages to support the Linux kernel's dynamic debug feature. Debug messages can be enabled or disabled by the debug feature if the - kernel module is built in debug mode (EXTRA_CFLAGS=-g -DDEBUG) - Linux kernel supports dynamic debug (CONFIG_DYNAMIC_DEBUG is set) This patch removes outdated kernel compatibility macros (used for Linux kernels in version 4.x) and cleans up the kernel module's code.
* [KERNEL] convert to blk-mq and ktimeManuel Bentele2020-08-271-0/+3
| | | | | | | | | | | This converts the dnbd3 kernel module driver to use the blk-mq infrastructure, which allows the dnbd3 kernel module driver to be compatible with Linux kernels in version 5.x or later. The conversion of the implementation uses one hardware queue to preserve the existing send/receive and load-balancing logic, but can be scaled up in the future. In addition to that, time measurements in the implementation are converted to ktime based accessors to replace the use of deprecated time interfaces.
* [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
* Get rid of unneccessary volatileSimon Rettberg2015-02-221-2/+2
| | | | Some minor debugging code, mostly commented out
* [KERNEL] Fix possible deadlock on server switchSimon Rettberg2013-11-111-2/+2
| | | | | [KERNEL] Remove server mode support as it's not needed anymore [KERNEL] Some more sanity checks and debug messages
* [KERNEL] Slow down with RTT measurements after 30 secondsSimon Rettberg2013-10-241-1/+2
| | | | | | | 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.
* Replace all pthread_spin_* calls with spin_*, so that all locking can be ↵sr2013-07-171-0/+1
| | | | | | tracked and debugged Fix compilation of kernel module
* [SERVER] Check which dnbd3 devices are idle and ready to use for proxy modesr2012-09-031-3/+1Star
| | | | | | [SERVER] Skeleton of server-to-server communication [SERVER] Update access-time of images in use by actual clients [*] Add dnbd3_host_t type to handle address+port+addrtype consistently across the project
* [*] Fixed and unified formattingsr2012-09-031-35/+35
|
* [KERNEL] Tell server whether we're a client or a server in proxy modesr2012-09-011-1/+1
| | | | | [KERNEL] SysFS: Return empty string for current_server if not connected [SERVER] Code refactoring
* [KERNEL] Add IOCTLs to add and remove serverssr2012-08-281-4/+4
| | | | | [KERNEL] Detect dead idle connection earlier [KERNEL] Improved debug output
* [KERNEL] Refactor and extend sysfs (add data the server will need in proxy mode)sr2012-08-271-3/+1Star
| | | | | | | [SERVER] Use MSG_MORE instead of cork/uncork to save two syscalls [KERNEL] Fail-Counter for alt servers, ignore servers that fail too often [KERNEL] Add new alt servers to list, instead of replacing the old list [*] Add CMD_LATEST_RID to tell client about new revisions
* [KERNEL] Make rtt threshold relativesr2012-08-251-2/+2
|
* [KERNEL] Only update alt-server list if received from initial serversr2012-08-251-1/+1
| | | | [*] Add CMD_KEEPALIVE protocol message type
* [*] Cleanup, comments, more error checkssr2012-08-241-10/+21
| | | | | | | | [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
* [KERNEL] rtt measurement improvedJohann Latocha2012-05-081-0/+1
|
* [KERNEL] Notify if new release available (sysfs)Johann Latocha2012-04-201-1/+1
|
* [KERNEL] Support for kernel 2.6.32Johann Latocha2012-03-161-0/+1
|
* [KERNEL] SysFS interface added (/sys/block/dnbd*/net/)Johann Latocha2012-02-211-8/+17
|
* [KERNEL] Major bug fixesJohann Latocha2012-02-161-1/+1
|
* [KERNEL] Switch server on connection lostJohann Latocha2012-02-161-0/+1
|
* [SERVER] Memleak fixedJohann Latocha2012-02-151-0/+2
| | | | [KERNEL] Socket swap fixed
* [SERVER] Config reload fixedJohann Latocha2012-02-101-3/+0Star
|
* [ALL] RefactoringJohann Latocha2012-02-081-0/+4
| | | | | [ALL] Send and receive servers [TODO] Config file reloading is broken
* [SERVER] Parsing config file with glibJohann Latocha2012-02-021-1/+2
| | | | | [KERNEL] Bugfixes [CLIENT] Using vid and rid
* [ALL] Some refactoringJohann Latocha2012-01-311-2/+2
|
* [ALL] Reformat (line wrapping, indent)Johann Latocha2012-01-301-19/+19
|
* [SERVER] Timeout for client socketsJohann Latocha2012-01-301-1/+2
| | | | [KERNEL] Send keep alive
* [KERNEL] Change server at runtimeJohann Latocha2012-01-301-3/+5
| | | | [SERVER] Build error/warning on x64 fixed
* [KERNEL] Multi device supportJohann Latocha2012-01-251-15/+22
|
* Serving more than one image.Johann Latocha2012-01-241-0/+1
|
* First working version :)Johann Latocha2012-01-191-0/+47