search for: no_sr

Displaying 6 results from an estimated 6 matches for "no_sr".

2019 Aug 20
2
[nbdkit PATCH v2] main: Add option to disable SR advertisement
...|--single] [--selinux-label LABEL] diff --git a/server/internal.h b/server/internal.h index 29a89606..22e13b6d 100644 --- a/server/internal.h +++ b/server/internal.h @@ -88,6 +88,7 @@ extern bool foreground; extern const char *ipaddr; extern enum log_to log_to; extern bool newstyle; +extern bool no_sr; extern const char *port; extern bool readonly; extern const char *run; diff --git a/server/options.h b/server/options.h index 0be19f15..a69f413a 100644 --- a/server/options.h +++ b/server/options.h @@ -1,5 +1,5 @@ /* nbdkit - * Copyright (C) 2013-2018 Red Hat Inc. + * Copyright (C) 2013-2019 R...
2019 Sep 12
0
[nbdkit PATCH 2/2] server: Add --mask-handshake option for integration testing
...b/server/internal.h index 9314e8ff..5da3e3c3 100644 --- a/server/internal.h +++ b/server/internal.h @@ -90,6 +90,7 @@ extern const char *exportname; extern bool foreground; extern const char *ipaddr; extern enum log_to log_to; +extern unsigned mask_handshake; extern bool newstyle; extern bool no_sr; extern const char *port; diff --git a/server/options.h b/server/options.h index a69f413a..c74e0b8b 100644 --- a/server/options.h +++ b/server/options.h @@ -46,6 +46,7 @@ enum { FILTER_OPTION, LOG_OPTION, LONG_OPTIONS_OPTION, + MASK_HANDSHAKE_OPTION, NO_SR_OPTION, RUN_OPTION, SE...
2019 Sep 12
3
[nbdkit PATCH 0/2] Make client fallback testing easier
This is similar to the recent --no-sr option - it's a change that is unlikely to ever be used except by someone testing whether a client is compliant to the protocol, but in that niche case, it can be quite handy (it's a lot nicer to be able to purposefully cripple a server from the command line than from a one-off compile, when testing if a client's fallback for a spec-compliant but
2019 Aug 27
0
[nbdkit PATCH] server: Enforce sane stdin/out/err
...er/internal.h | 1 + server/connections.c | 12 ++++++++++++ server/main.c | 11 +++++++++++ 3 files changed, 24 insertions(+) diff --git a/server/internal.h b/server/internal.h index 22e13b6d..a9692bbc 100644 --- a/server/internal.h +++ b/server/internal.h @@ -92,6 +92,7 @@ extern bool no_sr; extern const char *port; extern bool readonly; extern const char *run; +extern bool listen_stdin; extern const char *selinux_label; extern int threads; extern int tls; diff --git a/server/connections.c b/server/connections.c index c173df8d..0184afea 100644 --- a/server/connections.c +++ b/se...
2019 Sep 01
11
[nbdkit PATCH 00/10] Avoid -Wshadow
While working on can_FOO caching, at one point I got confused by whether 'readonly' meant the global set by -r or a local passed to .open(). A quick attempt to compile with -Wshadow found several other confusing points; this series gets us to the point that we can add -Wshadow to builds with --enable-gcc-warnings. Eric Blake (10): server: Avoid -Wshadow warnings guestfs: Avoid
2019 Sep 04
2
[libnbd PATCH] api: Add way to avoid structured replies
...ags.c +can_df_flag_CPPFLAGS = \ + -I$(top_srcdir)/include -Dflag=can_df \ + $(NULL) +can_df_flag_CFLAGS = $(WARNINGS_CFLAGS) +can_df_flag_LDADD = $(top_builddir)/lib/libnbd.la + +can_not_df_flag_SOURCES = eflags.c +can_not_df_flag_CPPFLAGS = \ + -I$(top_srcdir)/include -Dflag=can_df -Dvalue=false -Dno_sr \ + $(NULL) +can_not_df_flag_CFLAGS = $(WARNINGS_CFLAGS) +can_not_df_flag_LDADD = $(top_builddir)/lib/libnbd.la + can_multi_conn_flag_SOURCES = eflags.c can_multi_conn_flag_CPPFLAGS = \ -I$(top_srcdir)/include -Dflag=can_multi_conn \ diff --git a/tests/eflags.c b/tests/eflags.c index 675802a..a...