summaryrefslogtreecommitdiffstats
path: root/src/client
Commit message (Collapse)AuthorAgeFilesLines
* [KERNEL] Removes duplicate word 'of' in license headersManuel Bentele2021-04-161-1/+1
|
* [CLIENT] Use SO_GETPEERCRED instead of braindead setuid crapSimon Rettberg2021-04-141-56/+69
| | | | | | If you need daemon mode, run as root with --daemon, normal users can then request devices to be connected using the same binary WITHOUT havind the suid bit set on it.
* [BUILD] Add support in CMake to validate (lint) the source codeManuel Bentele2021-03-041-1/+6
|
* [BUILD] Fix dnbd3-client build, Fix source-only buildSimon Rettberg2020-12-021-1/+1
|
* [BUILD] Include branch and build timestamp in binariesSimon Rettberg2020-12-021-1/+3
|
* [CLIENT] print help and version number correctlyManuel Bentele2020-12-021-8/+5Star
| | | | | | This change prevents the dnbd3-client to print the help text twice if the help parameter is submitted. In addition to that, correct exit codes are set after the help text is printed and the program terminates.
* [CLIENT] display proper connected server if multiple servers specifiedManuel Bentele2020-11-101-12/+18
| | | | | | | With this change, the dnbd3-client is able to display the selected server (choosen by the Linux kernel module) after successful probing. Therefore, the ioctl call OPEN returns the selected server host as index of the specified dnbd3-server hosts after successful probing.
* [KERNEL, CLIENT]: submit and probe multiple dnbd3-server with ioctl OPENManuel Bentele2020-11-061-14/+54
| | | | | | | | | | The ioctl OPEN call for DNBD3 devices exposed by the dnbd3 Linux kernel module, is extended with a fixed array of dnbd3 hosts. The fixed array allows the dnbd3-client to submit host information (IP address and port) of multiple dnbd3-servers. This information is used to probe all submitted dnbd3-servers and add them to the alternative dnbd3-server list. If at least one dnbd3-server is not reachable, the OPEN ioctl call will abort with an error code.
* [CLIENT] format output of program help textManuel Bentele2020-10-301-7/+7
|
* [CLIENT] add documentation for adding/removing dnbd3-server to helpManuel Bentele2020-10-302-10/+9Star
|
* [CLIENT] add feature to ignore propagated alternative servers (sticky mode)Manuel Bentele2020-10-291-6/+23
|
* [BUILD] remove the build requirement for an unused C++ compilerManuel Bentele2020-10-271-1/+2
| | | | | 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] add CMake targets to build binary and source packages with CPackManuel Bentele2020-10-222-3/+4
| | | | | | | | | | | 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] set build type and stop Release build if repository is dirtyManuel Bentele2020-10-191-2/+2
|
* [BUILD] fixes issues to build user space programs on FreeBSD 12.1Manuel Bentele2020-10-192-1/+2
|
* [BUILD] rewrite CMake build system to track changes of source filesManuel Bentele2020-10-162-5/+19
| | | | | | | | | | 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.
* [*] Introduce constants for IPv4/6 in dnbd3_host_tSimon Rettberg2017-10-281-8/+9
| | | | | | | AF_INET luckily was "2" on all platforms checked, so no problems there with interoperation, but AF_INET6 is different between Linux, BSD, Windows and possibly others, so map back and forth between AF_INET/AF_INET6 and HOST_IP4/HOST_IP6 to fix this.
* [*] Continue splitting #defines to clientconfig.h etc.Simon Rettberg2017-09-021-0/+1
|
* [CLIENT] fix help output for closing a deviceJonathan Bauer2016-06-131-1/+1
|
* cleanup commitsSebastian2016-02-111-4/+3Star
|
* [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
* [CLIENT] Fix compilation, adapt to stdbool.hSimon Rettberg2015-01-131-25/+25
|
* [CLIENT] Debug argument handling in daemon modeSimon Rettberg2014-04-151-9/+13
|
* [*] Add automatic version string generationv2.0Simon Rettberg2014-01-131-0/+1
|
* [CLIENT] Add options to add and remove alt-serversSimon Rettberg2013-11-111-31/+94
|
* [CLIENT] Fix daemon-kill commandSimon Rettberg2013-08-221-1/+4
|
* [CLIENT] Fixes & TweaksSimon Rettberg2013-08-201-12/+24
|
* [CLIENT] Fix nullpointer accessSimon Rettberg2013-08-201-3/+1Star
|
* [CLIENT] Finish daemon-mode supportSimon Rettberg2013-08-201-15/+105
|
* [CLIENT] Start implementing a daemon mode which should make connecting dnbd3 ↵Simon Rettberg2013-08-191-140/+348
| | | | devices for unprivileged users easier
* Completely remove glib as dependencysr2013-07-181-52/+1Star
|
* [KERNEL/CLIENT] Add IPv6 supportdnbd3-sr-thesis-finalsr2013-01-151-14/+88
|
* [SERVER] Check which dnbd3 devices are idle and ready to use for proxy modesr2012-09-031-9/+9
| | | | | | [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-216/+217
|
* [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-0/+1
| | | | | [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-4/+4
| | | | | | | [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-4/+4
| | | | [*] Add CMD_KEEPALIVE protocol message type
* [KERNEL] Make it possible to receive push messages by the serversr2012-08-251-3/+5
|
* [*] Fix bug in serializer_get_*sr2012-08-251-7/+10
| | | | | | [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-24/+40
| | | | | | | | [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-17/+10Star
|
* [KERNEL] Set proper exit status on connectionJohann Latocha2012-05-081-0/+12
|
* [KERNEL] Read ahead increasedJohann Latocha2012-02-231-4/+15
|
* [CLIENT] Get host by nameJohann Latocha2012-02-091-10/+23
|
* [ALL] Request latest available ridJohann Latocha2012-02-061-6/+6
|
* [KERNEL] Device can now be closedJohann Latocha2012-02-031-52/+61
|
* [CLIENT] Connecting via config fileJohann Latocha2012-02-031-16/+64
|
* [SERVER] Parsing config file with glibJohann Latocha2012-02-021-19/+28
| | | | | [KERNEL] Bugfixes [CLIENT] Using vid and rid
* [ALL] Some refactoringJohann Latocha2012-01-311-6/+6
|