diff options
author | Manuel Bentele | 2020-10-29 18:36:52 +0100 |
---|---|---|
committer | Manuel Bentele | 2020-10-29 18:36:52 +0100 |
commit | 1c236b8366014fbd1dab42c0ef50996445c57b22 (patch) | |
tree | a59f638eaf49fabc302ecd081b90bba7ad0dc125 /src/fuse | |
parent | [DOC] update setup description of docker containers with network links (diff) | |
download | dnbd3-1c236b8366014fbd1dab42c0ef50996445c57b22.tar.gz dnbd3-1c236b8366014fbd1dab42c0ef50996445c57b22.tar.xz dnbd3-1c236b8366014fbd1dab42c0ef50996445c57b22.zip |
[CLIENT] add feature to ignore propagated alternative servers (sticky mode)
Diffstat (limited to 'src/fuse')
-rw-r--r-- | src/fuse/main.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/fuse/main.c b/src/fuse/main.c index 8963e6d..f4260c0 100644 --- a/src/fuse/main.c +++ b/src/fuse/main.c @@ -402,6 +402,12 @@ int main( int argc, char *argv[] ) printUsage( argv[0], EXIT_FAILURE ); } + /* abort if sticky mode is set and image will not be opened */ + if ( !learnNewServers && image_Name == NULL ) { + logadd( LOG_ERROR, "sticky mode can only be set if image will be opened.\n" ); + printUsage( argv[0], EXIT_FAILURE ); + } + if ( server_address == NULL || image_Name == NULL ) { printUsage( argv[0], EXIT_FAILURE ); } |