Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [BUILD] remove the build requirement for an unused C++ compiler | Manuel Bentele | 2020-10-27 | 7 | -7/+14 |
| | | | | | This patch sets the programming languages of each CMake project to C. With this change, CMake does not search for an unused C++ compiler anymore. | ||||
* | [BUILD] fix comments and remove useless code fragments in CMake files | Manuel Bentele | 2020-10-23 | 1 | -6/+5 |
| | |||||
* | [BUILD] disable build of dnbd3-client if Linux kernel module is disabled | Manuel Bentele | 2020-10-22 | 1 | -2/+2 |
| | |||||
* | [BUILD] add CMake targets to build binary and source packages with CPack | Manuel Bentele | 2020-10-22 | 11 | -18/+24 |
| | | | | | | | | | | | 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] add option to build the dnbd3-server with afl-fuzz support | Manuel Bentele | 2020-10-20 | 5 | -16/+55 |
| | | | | | The afl-fuzz support for the dnbd3-server requires an AFL C compiler like afl-gcc and can be enabled with the CMake option DNBD3_SERVER_AFL. | ||||
* | [BUILD] set build type and stop Release build if repository is dirty | Manuel Bentele | 2020-10-19 | 7 | -17/+14 |
| | |||||
* | [BUILD] fixes issues to build user space programs on FreeBSD 12.1 | Manuel Bentele | 2020-10-19 | 7 | -5/+7 |
| | |||||
* | [BUILD] rewrite CMake build system to track changes of source files | Manuel Bentele | 2020-10-16 | 64 | -1102/+306 |
| | | | | | | | | | | 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] ported socket time structures to support CentOS 8 kernel 4.18 | Manuel Bentele | 2020-10-13 | 1 | -1/+24 |
| | | | | | | | | | This patch implements the old time structures to support Linux kernels prior to version 5.1.x. WARNING: This change to the deprecated time structures does not solve the Y2038 issue. Thus, the dnbd3 Linux kernel module can only run under Linux kernels prior to version 5.1.x until the end of year 2037. | ||||
* | [KERNEL] set socket timeouts with new function and time structure | Manuel Bentele | 2020-08-31 | 1 | -8/+30 |
| | | | | | | | | | | This patch replaces the deprecated kernel_setsockopt() function with the socket generic function sock_setsockopt() to set the send and receive timeout for all used sockets in the kernel module. The timeout data type is choosen according to the available kernel version, so that the dnbd3 kernel module supports the new y2038-problem-solving socket options. With both changes, the kernel module runs on Linux kernel 5.4 LTS and later (including Linux kernel 5.9). | ||||
* | [KERNEL] make private network functions static | Manuel Bentele | 2020-08-28 | 2 | -294/+286 |
| | |||||
* | [KERNEL] convert debug messages and clean up code | Manuel Bentele | 2020-08-28 | 7 | -203/+254 |
| | | | | | | | | | | | | 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 ktime | Manuel Bentele | 2020-08-27 | 4 | -144/+177 |
| | | | | | | | | | | | 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. | ||||
* | [SERVER] Fix rid 0 proxy lookup if local version is newer | Simon Rettberg | 2020-08-14 | 1 | -5/+15 |
| | | | | | There was a logic bug that would favor a remotely looked up image rid, even if we already found a higher revision locally. | ||||
* | [SERVER] FUSE: Set name for fuse theads | Simon Rettberg | 2020-07-31 | 1 | -0/+2 |
| | |||||
* | [SERVER] FUSE: Use splice with move for local reads | Simon Rettberg | 2020-07-31 | 1 | -2/+16 |
| | | | | | | Greatly improves performance when reading from the local disk cache, and additionally avoids having everything in the fs cache twice (disk view and fuse view). | ||||
* | [SERVER] FUSE: Fix arguments to fuse | Simon Rettberg | 2020-07-30 | 2 | -2/+3 |
| | |||||
* | [SERVER] Remove dead code | Simon Rettberg | 2020-07-30 | 1 | -6/+0 |
| | |||||
* | [SERVER] Fix: Missing argument to fprintf() | Simon Rettberg | 2020-07-30 | 1 | -1/+1 |
| | |||||
* | [SERVER] Inline imageLookup/Open since we use fuse_mt | Simon Rettberg | 2020-07-30 | 1 | -56/+34 |
| | |||||
* | [SERVER] FUSE: Add readdir for / | Simon Rettberg | 2020-07-30 | 1 | -1/+40 |
| | |||||
* | [SERVER] Add FUSE mode | Simon Rettberg | 2020-07-28 | 11 | -102/+781 |
| | | | | | Still needs some cleanup and optimizations, variable naming sucks, comments, etc. | ||||
* | Merge branch 'no-working-flag' into fuse_ll | Simon Rettberg | 2020-07-27 | 37 | -2161/+3397 |
|\ | |||||
| * | [SERVER] Fix: NULL pointer access in saveLoadAllCacheMaps() | Simon Rettberg | 2020-07-21 | 1 | -0/+2 |
| | | | | | | | | Entries in _images array might ne NULL | ||||
| * | [SERVER] Fix: No replication if autoFreeDiskSpaceDelay is disabled | Simon Rettberg | 2020-06-30 | 1 | -4/+12 |
| | | |||||
| * | [SHARED] Fix 16 byte information leakage in select image message | Simon Rettberg | 2020-06-30 | 1 | -2/+0 |
| | | |||||
| * | [SERVER] Know when to stop | Simon Rettberg | 2020-06-10 | 1 | -1/+1 |
| | | |||||
| * | [SERVER] Likewise, flush entire payload on RTT measurement | Simon Rettberg | 2020-06-10 | 1 | -1/+6 |
| | | |||||
| * | [SERVER] Fix list walk when removing client from uplink | Simon Rettberg | 2020-06-10 | 1 | -1/+3 |
| | | |||||
| * | [SERVER] fix uninitialized variable | Simon Rettberg | 2020-06-10 | 1 | -1/+1 |
| | | |||||
| * | [SERVER] Fix check for RTT block reply size | Simon Rettberg | 2020-06-10 | 1 | -1/+1 |
| | | |||||
| * | [SERVER] Check local and remote for updates on rid == 0 | Simon Rettberg | 2020-03-31 | 1 | -4/+8 |
| | | |||||
| * | [BENCH] fix wrong operator precedence | Simon Rettberg | 2020-03-23 | 1 | -1/+1 |
| | | |||||
| * | [SERVER] Make lock/thread debugging dedicated cmake option | Simon Rettberg | 2020-03-23 | 2 | -2/+2 |
| | | |||||
| * | [SHARED] connect_ms might change above, don't check | Simon Rettberg | 2020-03-23 | 1 | -1/+1 |
| | | |||||
| * | [SERVER] image_ensureDiskSpace should only deletes proxied images | Simon Rettberg | 2020-03-20 | 1 | -18/+19 |
| | | |||||
| * | [SERVER] Remember atime in .meta file | Simon Rettberg | 2020-03-20 | 3 | -62/+139 |
| | | |||||
| * | [SERVER] Forbid hidden files when scanning image dir | Simon Rettberg | 2020-03-20 | 1 | -1/+2 |
| | | |||||
| * | [SERVER] Fix warnings, add assertions | Simon Rettberg | 2020-03-20 | 3 | -9/+15 |
| | | |||||
| * | [SHARED] crc32: Don't skip table lookup if PCLMUL is unavailable | Simon Rettberg | 2020-03-19 | 1 | -12/+13 |
| | | |||||
| * | [SERVER] crc32: Fix compile with optimizations | Simon Rettberg | 2020-03-19 | 1 | -2/+2 |
| | | | | | | | | | | Should have tested in "Release" mode I guess. Seems we're at about 24x performance this way, so hooray. | ||||
| * | [SERVER] Use PCLMUL for crc32 on AMD64 if available | Simon Rettberg | 2020-03-19 | 2 | -55/+178 |
| | | | | | | | | | | | | | | This is about 16x as fast as before with the lookup table for processing 4 bytes at a time and should work on any AMD64 CPU made in the last decade. We still need an AltiVec implementation for G5 though. | ||||
| * | [SERVER] Shorter wait when closing socket after reply | Simon Rettberg | 2020-03-19 | 1 | -0/+2 |
| | | |||||
| * | [SERVER] Add name param to threadpool_run | Simon Rettberg | 2020-03-19 | 6 | -7/+16 |
| | | |||||
| * | [SERVER] Use first request in queue for RTT measurements | Simon Rettberg | 2020-03-17 | 1 | -6/+20 |
| | | | | | | | | | | | | This makes sure the server we're potentially switching to can at least serve the next request in the queue, making sure some progress will be made. | ||||
| * | [SERVER] Make sure bgrWindowSize doesn't overwhelm uplink queue | Simon Rettberg | 2020-03-17 | 2 | -0/+6 |
| | | |||||
| * | [SERVER] Include build type and version in RPC | Simon Rettberg | 2020-03-17 | 4 | -8/+16 |
| | | | | | | | | Added new query type q=version, which uses the STATS access rights. | ||||
| * | [SERVER] Don't prefetch across hash blocks in BGS_HASHBLOCK mode | Simon Rettberg | 2020-03-17 | 1 | -5/+8 |
| | | |||||
| * | [SERVER] threadpool: Simplify get code, make debug code _DEBUG only | Simon Rettberg | 2020-03-14 | 1 | -4/+7 |
| | | |||||
| * | [SERVER] Remove uplink_ prefix from static (private) functions | Simon Rettberg | 2020-03-14 | 1 | -40/+40 |
| | |