summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
Commit message (Collapse)AuthorAgeFilesLines
* [FUSE] basic cow implementation & rudimentary testsMichael Scherle2024-05-131-0/+1
|
* [BUILD] Fix versioning format for Docker tagsManuel Bentele2021-11-301-2/+2
|
* [BUILD] Fix CMake output if kernel module is turned off on Linux systemManuel Bentele2021-08-251-6/+9
|
* [BUILD] Add CMake option to enable build of dnbd3-benchManuel Bentele2021-06-241-0/+1
|
* [BUILD] Fix build issue if version information (Git tag) is missingManuel Bentele2021-03-171-1/+1
| | | | | | | | | | | | The software version for packaging purposes is consituted from the following rules: - If the version information (from Git tags or the embedded version header file) is available, the version number for the packaging is set to those found version information. - If there isn't any version information available (e.g. missing Git tags), the version number for the packaging is set to '0.0' to represent an unkown version number.
* [BUILD] Enable lint targets if lint programs are foundManuel Bentele2021-03-111-13/+1Star
|
* [BUILD] Make lint/format optionalSimon Rettberg2021-03-051-1/+13
|
* [BUILD] Add support in CMake to validate (lint) the source codeManuel Bentele2021-03-041-1/+22
|
* [BUILD] Add build support for Github actionsManuel Bentele2021-03-021-1/+1
|
* [BUILD] add support for atomic operations not supported by hardwareManuel Bentele2020-11-201-2/+2
| | | | | | | | | | | | | | This change links the dnbd3-server with 'libatomic' to add support for atomic operations not supported by hardware (especially 32-bit hardware architectures, such as ARM). Thus the dnbd3-server can also run on a Raspberry Pi 1 running Rasperry Pi OS. Note that the dnbd3-server is still linked to the libatomic, even if the hardware supports atomic operations. In this case, the compiler resolves atomic operations and replaces them automatically with specific built-in functions. This unnecessary linkage can be removed in the future if the GCC supports an upcoming option called automatic linking of libatomic (--enable-autolink-libatomic).
* cmake: No sign conversion warningsSimon Rettberg2020-11-131-1/+1
|
* [BUILD] add support to locate build directory out of Git directoryManuel Bentele2020-11-131-2/+2
| | | | | This patch adds support to locate the build directory for generated artifacts out of the original checked out Git source code repository.
* [BUILD] build docker containers only if build of dnbd3-server is enabledManuel Bentele2020-11-101-2/+2
| | | | | | | | | This patch fixes the issue that a Docker container for the dnbd3 components (including the dnbd3-server) can be built with missing dnbd3-server's binary. Since the created Docker container starts the missing binary, it will fail. Therefore, a built of the Docker image is only possible if building of the dnbd3-server is enabled (CMAKE option DNBD3_SERVER=ON).
* [BUILD] add CMake support to build docker images based on ArchlinuxManuel Bentele2020-11-021-4/+13
|
* [BUILD] do not ignore C flags that are passed to CMakeManuel Bentele2020-10-301-1/+1
| | | | | | | | C flags which are set by the environment variable CFLAGS have been ignored by CMake since the corresponding CMake variable CMAKE_C_FLAGS was not extended with those passed flags, but have been overwritten by a fixed set of flags. This patch fixes the overwrite of CMAKE_C_FLAGS and extends its content with the C flags passed in the environment variable.
* [BUILD] add build options to enable/disable build of dnbd3 componentsManuel Bentele2020-10-301-4/+5
|
* [BUILD] add CMake support to build docker images based on Ubuntu 20.04Manuel Bentele2020-10-291-1/+12
|
* [BUILD] do not print verbose CMake messages in unsupported CMake versionsv2.3Manuel Bentele2020-10-271-11/+0Star
|
* [BUILD] fix broken version header packaging for source packagesManuel Bentele2020-10-271-11/+24
|
* Add CMake build requirements check to find libraries and Linux kernel headersManuel Bentele2020-10-271-15/+10Star
|
* [BUILD] fix comments and remove useless code fragments in CMake filesManuel Bentele2020-10-231-2/+2
|
* [BUILD] add systemd service file for dnbd3-server to installation targetsManuel Bentele2020-10-221-3/+7
|
* [BUILD] add CMake targets to build binary and source packages with CPackManuel Bentele2020-10-221-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 supportManuel Bentele2020-10-201-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 systemsManuel Bentele2020-10-191-18/+20
|
* [BUILD] fixes issues to build user space programs on FreeBSD 12.1Manuel Bentele2020-10-191-13/+10Star
|
* [BUILD] rewrite CMake build system to track changes of source filesManuel Bentele2020-10-161-277/+101Star
| | | | | | | | | | 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 warningManuel Bentele2020-10-131-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 codeManuel Bentele2020-08-281-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 ktimeManuel Bentele2020-08-271-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 moduleManuel Bentele2020-08-191-1/+1
|
* [SERVER] Add FUSE modeSimon Rettberg2020-07-281-1/+14
| | | | | Still needs some cleanup and optimizations, variable naming sucks, comments, etc.
* [SERVER] Make lock/thread debugging dedicated cmake optionSimon Rettberg2020-03-231-9/+17
|
* cmake: Fix version string dependency hell stuff once againSimon Rettberg2020-03-191-2/+3
| | | | | BULLSHIT BULLSHIT
* cmake: Fix version.c building on fresh checkoutsSimon Rettberg2020-03-181-4/+4
|
* [SERVER] Include build type and version in RPCSimon Rettberg2020-03-171-4/+3Star
| | | | Added new query type q=version, which uses the STATS access rights.
* Merge branch 'master' into atomicSimon Rettberg2019-10-281-12/+4Star
|\
| * cmake: Try to get include directories right (per target)Simon Rettberg2019-10-071-13/+5Star
| |
* | cmake: Add macro to add compiler flag only if supportedSimon Rettberg2019-09-111-6/+24
| |
* | Fix compilation on older gccSimon Rettberg2019-09-091-1/+1
| |
* | cmake: Add some flags that enable exploit mitigation techniquesSimon Rettberg2019-09-071-6/+8
|/
* CMake: Hide kernel option on BSD, make kernel dir configurableSimon Rettberg2018-07-061-6/+7
|
* [SERVER] cmake: Add config option for extra compiler opptionsSimon Rettberg2018-07-041-5/+6
|
* [SERVER] Add AFL supportSimon Rettberg2017-10-301-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 h2oSimon Rettberg2017-10-261-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 dependencySimon Rettberg2017-10-241-9/+3Star
| | | | | | 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 aswellSimon Rettberg2017-10-201-2/+2
|
* [SERVER] Install example config to /etc/dnbd3/sampleSimon Rettberg2017-10-191-1/+1
|
* [*] Support hop-counting in request header, protocol version 3Simon Rettberg2017-10-171-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 Rettberg2016-07-221-30/+70
| | | | | | turn them on/off Use either cmake -DBUILD_*=ON/OFF, or handle via ccmake's gui