Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [BUILD] add CMake support to build docker images based on Ubuntu 20.04 | Manuel Bentele | 2020-10-29 | 1 | -1/+12 |
| | |||||
* | [BUILD] do not print verbose CMake messages in unsupported CMake versionsv2.3 | Manuel Bentele | 2020-10-27 | 1 | -11/+0 |
| | |||||
* | [BUILD] fix broken version header packaging for source packages | Manuel Bentele | 2020-10-27 | 1 | -11/+24 |
| | |||||
* | Add CMake build requirements check to find libraries and Linux kernel headers | Manuel Bentele | 2020-10-27 | 1 | -15/+10 |
| | |||||
* | [BUILD] fix comments and remove useless code fragments in CMake files | Manuel Bentele | 2020-10-23 | 1 | -2/+2 |
| | |||||
* | [BUILD] add systemd service file for dnbd3-server to installation targets | Manuel Bentele | 2020-10-22 | 1 | -3/+7 |
| | |||||
* | [BUILD] add CMake targets to build binary and source packages with CPack | Manuel Bentele | 2020-10-22 | 1 | -16/+106 |
| | | | | | | | | | | | 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 | 1 | -5/+12 |
| | | | | | 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] build Linux kernel module only on Linux systems | Manuel Bentele | 2020-10-19 | 1 | -18/+20 |
| | |||||
* | [BUILD] fixes issues to build user space programs on FreeBSD 12.1 | Manuel Bentele | 2020-10-19 | 1 | -13/+10 |
| | |||||
* | [BUILD] rewrite CMake build system to track changes of source files | Manuel Bentele | 2020-10-16 | 1 | -277/+101 |
| | | | | | | | | | | 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. | ||||
* | [FUSE] turn on compiler optimization to fix warning | Manuel Bentele | 2020-10-13 | 1 | -3/+3 |
| | | | | | | | This change enables compiler optimization (-O2) in Release builds to fix the following error warning: _FORTIFY_SOURCE requires compiling with optimization (-O) | ||||
* | [KERNEL] convert debug messages and clean up code | Manuel Bentele | 2020-08-28 | 1 | -2/+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 ktime | Manuel Bentele | 2020-08-27 | 1 | -0/+6 |
| | | | | | | | | | | | 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. | ||||
* | cmake: Fixed missing include paths to build the Linux kernel module | Manuel Bentele | 2020-08-19 | 1 | -1/+1 |
| | |||||
* | [SERVER] Add FUSE mode | Simon Rettberg | 2020-07-28 | 1 | -1/+14 |
| | | | | | Still needs some cleanup and optimizations, variable naming sucks, comments, etc. | ||||
* | [SERVER] Make lock/thread debugging dedicated cmake option | Simon Rettberg | 2020-03-23 | 1 | -9/+17 |
| | |||||
* | cmake: Fix version string dependency hell stuff once again | Simon Rettberg | 2020-03-19 | 1 | -2/+3 |
| | | | | | BULLSHIT BULLSHIT | ||||
* | cmake: Fix version.c building on fresh checkouts | Simon Rettberg | 2020-03-18 | 1 | -4/+4 |
| | |||||
* | [SERVER] Include build type and version in RPC | Simon Rettberg | 2020-03-17 | 1 | -4/+3 |
| | | | | Added new query type q=version, which uses the STATS access rights. | ||||
* | Merge branch 'master' into atomic | Simon Rettberg | 2019-10-28 | 1 | -12/+4 |
|\ | |||||
| * | cmake: Try to get include directories right (per target) | Simon Rettberg | 2019-10-07 | 1 | -13/+5 |
| | | |||||
* | | cmake: Add macro to add compiler flag only if supported | Simon Rettberg | 2019-09-11 | 1 | -6/+24 |
| | | |||||
* | | Fix compilation on older gcc | Simon Rettberg | 2019-09-09 | 1 | -1/+1 |
| | | |||||
* | | cmake: Add some flags that enable exploit mitigation techniques | Simon Rettberg | 2019-09-07 | 1 | -6/+8 |
|/ | |||||
* | CMake: Hide kernel option on BSD, make kernel dir configurable | Simon Rettberg | 2018-07-06 | 1 | -6/+7 |
| | |||||
* | [SERVER] cmake: Add config option for extra compiler opptions | Simon Rettberg | 2018-07-04 | 1 | -5/+6 |
| | |||||
* | [SERVER] Add AFL support | Simon Rettberg | 2017-10-30 | 1 | -0/+6 |
| | | | | | | | | | | | AFL is an instrumenting fuzzer. It expects to pass input to the program to be tested via command line (file name) or via stdin. This adds support for reading messages that normally would arrive via network directly from stdin. In this mode, the server is pretty useless otherwise. http://lcamtuf.coredump.cx/afl/ | ||||
* | [SERVER] Use picohttpparser from h2o | Simon Rettberg | 2017-10-26 | 1 | -1/+1 |
| | | | | | | | Simple and lean interface, no bloat, noice. Slighly modified to use a simple string struct for passing around strings that are not null terminated, instead of separate char* and length. | ||||
* | [SERVER] Get rid of zlib dependency | Simon Rettberg | 2017-10-24 | 1 | -9/+3 |
| | | | | | | We only used it for CRC-32, so now the source tree includes a stripped down version of the crc32 code from the zlib project. | ||||
* | cmake: Move sample config to /etc/dnbd3-server aswell | Simon Rettberg | 2017-10-20 | 1 | -2/+2 |
| | |||||
* | [SERVER] Install example config to /etc/dnbd3/sample | Simon Rettberg | 2017-10-19 | 1 | -1/+1 |
| | |||||
* | [*] Support hop-counting in request header, protocol version 3 | Simon Rettberg | 2017-10-17 | 1 | -4/+4 |
| | | | | | | | | | | | | | | We steal 8 bits from the request offset to count hops when requests get relayed by proxies. This still leaves plenty of bits for the offset (56 bits, supporting images of up to 72 petabytes). This is used to detect proxy cycles. The algorithm is not perfect but should prevent endless relays of the same request. This is backwards compatible to old clients and servers, as the server only ever sets the hopcount in relayed requests if the upstream server is using protocol version 3 or newer, and clients are automatically upwards compatible as there is practically no image larger than 74PB, so the newly introduced hop count field is always 0 even in requests from old clients. | ||||
* | [cmake] Rewrote handling of individual modules; they now have options to ↵ | Simon Rettberg | 2016-07-22 | 1 | -30/+70 |
| | | | | | | turn them on/off Use either cmake -DBUILD_*=ON/OFF, or handle via ccmake's gui | ||||
* | Don't enable address sanitizer by default in debug mode with clang | Simon Rettberg | 2016-07-22 | 1 | -1/+1 |
| | |||||
* | Added rudimentary benchmark tool. | Christian Klinger | 2016-07-15 | 1 | -0/+5 |
| | |||||
* | [SERVER] Get rid of .sample for config files (saves you the rename orgy ↵ | Simon Rettberg | 2016-03-22 | 1 | -2/+2 |
| | | | | after install) | ||||
* | cmake: Don't fail setup if more than one server lib is missing | Janosch Dobler | 2016-03-01 | 1 | -3/+3 |
| | | | | | "If Zlib AND Jansson are not found, JANSSON_INCLUDE_DIR is not set to an empty string and cmake configuring fails." | ||||
* | fix error in version.h inclusion | Sebastian | 2016-02-11 | 1 | -1/+10 |
| | |||||
* | Cmake tuning; move cfg folder | Sebastian | 2016-02-11 | 1 | -35/+46 |
| | |||||
* | [SHARED] Implement pipe() based signalling | Simon Rettberg | 2016-02-05 | 1 | -2/+2 |
| | |||||
* | [SERVER] Performance: Optimized some functions (gprof) | Simon Rettberg | 2015-12-17 | 1 | -1/+1 |
| | | | | | | | A run with gprof revealed that background replication is a huge CPU hog. The block selection was very slow and has been improved a lot. Minor improvements were made to other functions that scan the cache map of an image and are thus relatively slow. | ||||
* | [SERVER] image_markComplete now handles locking so we remove() unlocked | Simon Rettberg | 2015-12-17 | 1 | -1/+1 |
| | |||||
* | [FUSE] Start refactoring so we can handle multithread fuse | Simon Rettberg | 2015-11-21 | 1 | -3/+3 |
| | |||||
* | [SERVER] Fix dependency checks for dnbd3-server | Simon Rettberg | 2015-05-12 | 1 | -7/+17 |
| | |||||
* | [SERVER] PoC RPC interface | schwaers | 2015-04-30 | 1 | -3/+4 |
| | |||||
* | Fix cmake when missing libs | Simon Rettberg | 2015-04-24 | 1 | -11/+15 |
| | |||||
* | [FUSE] Integrate into cmake build process | Simon Rettberg | 2015-04-24 | 1 | -9/+32 |
| | |||||
* | Get rid of unneccessary volatile | Simon Rettberg | 2015-02-22 | 1 | -4/+4 |
| | | | | Some minor debugging code, mostly commented out | ||||
* | [SERVER] Crank up warning levels of gcc and fix them all (mostly sign ↵ | Simon Rettberg | 2015-01-14 | 1 | -1/+1 |
| | | | | | | | compare and some unused params) Also allow newline at end of alt-servers file without complaining about it not being a valid alt server definition. |