summaryrefslogtreecommitdiffstats
path: root/src/kernel/blk.c
Commit message (Collapse)AuthorAgeFilesLines
* [BUILD] rewrite CMake build system to track changes of source filesManuel Bentele2020-10-161-1/+1
| | | | | | | | | | 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-29/+9Star
| | | | | | | | | | | | 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-120/+156
| | | | | | | | | | | 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] Lower queue->limits.max_sectors to 256, like nbdSimon Rettberg2019-02-131-1/+1
|
* [KERNEL] Add support for kernel 4.17.xSimon Rettberg2018-07-061-0/+11
|
* [KERNEL] Pre/post 4.11 handling of request opsJonathan Bauer2018-04-051-4/+20
|
* Follow ↵Rafael Gieschke2018-03-231-4/+4
| | | | https://github.com/torvalds/linux/commit/aebf526b53aea164508730427597d45f3e06b376
* [KERNEL] version check to support pointer to backing_dev_info in request_queueSimon Rettberg2017-10-091-0/+6
| | | | | This changed in 4.11, see https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=dc3b17cc8bf21307c7e076e7c778d5db756f7871
* [*] Continue splitting #defines to clientconfig.h etc.Simon Rettberg2017-09-021-0/+1
|
* [KERNEL] PAGE_CACHE_SIZE -> PAGE_SIZESimon Rettberg2016-10-171-1/+1
| | | | | | | These two have been the same all along and recently, the _CACHE variant has been removed (kernel 4.6). Switch to the non-CACHE version so build doesn't break on newer kernels.
* [KERNEL/CLIENT] Several minor tweaks and changesSimon Rettberg2016-01-111-2/+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] Minor tweaks here and thereSimon Rettberg2013-11-101-12/+1Star
|
* [KERNEL] Check for invalid ioctls to prevent kernel panics :)Simon Rettberg2013-08-191-12/+21
|
* fix deadlocksr2013-07-181-7/+18
|
* kernel module changessr2013-07-181-2/+10
|
* [SERVER] Automatically connect a dnbd3 device for a relayed imagesr2012-09-091-20/+24
| | | | | | [SERVER] Automatically disconnect dnbd3 device if local cache copy is complete [SERVER] Pre-allocate disk space for cache file [KERNEL] Refuse connection if server reports disk size < 4096 bytes
* [SERVER] Automatically assign and connect a dnbd3 device to a relayed imagesr2012-09-061-3/+11
|
* [SERVER] Check which dnbd3 devices are idle and ready to use for proxy modesr2012-09-031-9/+5Star
| | | | | | [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-160/+160
|
* [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-2/+28
| | | | | [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-6/+7
| | | | | | | [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] Only update alt-server list if received from initial serversr2012-08-251-0/+1
| | | | [*] Add CMD_KEEPALIVE protocol message type
* [KERNEL] Make it possible to receive push messages by the serversr2012-08-251-12/+30
|
* [*] Fix bug in serializer_get_*sr2012-08-251-3/+21
| | | | | | [CLIENT/KERNEL] Change ioctl to handle volume names instead if vids [*] Make protocol endian safe [CLIENT] Display ioctl errorcode on failure
* [*] Cleanup, comments, more error checkssr2012-08-241-20/+114
| | | | | | | | [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
* [ALL] Some cleanupJohann Latocha2012-05-211-7/+9
|
* [KERNEL] Set proper exit status on connectionJohann Latocha2012-05-081-4/+2Star
|
* [KERNEL] Notify if new release available (sysfs)Johann Latocha2012-04-201-0/+1
|
* [SERVER] Cache improvedJohann Latocha2012-04-111-9/+0Star
|
* [KERNEL] Support for kernel 2.6.32Johann Latocha2012-03-161-0/+5
|
* [SERVER] Cache images on hddJohann Latocha2012-03-061-0/+4
|
* [KERNEL] Read ahead increasedJohann Latocha2012-02-231-0/+6
|
* [ALL] Bugs, bugs, bugs...Johann Latocha2012-02-221-4/+1Star
|
* [KERNEL] SysFS interface added (/sys/block/dnbd*/net/)Johann Latocha2012-02-211-6/+14
|
* [KERNEL] KP on rmmod fixedJohann Latocha2012-02-201-9/+1Star
|
* [KERNEL] Switch server on connection lostJohann Latocha2012-02-161-0/+2
|
* [SERVER] Memleak fixedJohann Latocha2012-02-151-0/+2
| | | | [KERNEL] Socket swap fixed
* [SERVER] Config reload fixedJohann Latocha2012-02-101-2/+3
|
* [ALL] RefactoringJohann Latocha2012-02-081-17/+17
| | | | | [ALL] Send and receive servers [TODO] Config file reloading is broken
* [KERNEL] Segfault at closing device fixedJohann Latocha2012-02-061-0/+2
|
* [KERNEL] Device can now be closedJohann Latocha2012-02-031-15/+23
|
* [SERVER] Parsing config file with glibJohann Latocha2012-02-021-7/+9
| | | | | [KERNEL] Bugfixes [CLIENT] Using vid and rid
* [ALL] Some refactoringJohann Latocha2012-01-311-4/+4
|
* [ALL] Reformat (line wrapping, indent)Johann Latocha2012-01-301-105/+104Star
|
* [SERVER] Timeout for client socketsJohann Latocha2012-01-301-0/+5
| | | | [KERNEL] Send keep alive
* [KERNEL] Change server at runtimeJohann Latocha2012-01-301-4/+13
| | | | [SERVER] Build error/warning on x64 fixed
* [KERNEL] Multi device supportJohann Latocha2012-01-251-9/+62
|
* Serving more than one image.Johann Latocha2012-01-241-1/+3
|
* First working version :)Johann Latocha2012-01-191-0/+76