Displaying 20 results from an estimated 63 matches for "has_arg".
2008 Dec 05
6
xtables-addons+iptables-1.4.1+
Hi all,
We are trying to upgrade to iptables 1.4.1+
however the ipp2p module now it is included in the xtables-addons modules.
In the xtables-addons modules the commad line for ipp2p is changed
and the
-m ipp2p --ipp2p
option is not supported anymore ....
instead the maintainer requires that we use -m ipp2p --bit ... -m ipp2p
--kaza for each different P2P protocol.
as a result shorewall does
2018 Aug 20
1
[PATCH] common/mltools: getopt: add Getopt.OptString
...ons(+), 3 deletions(-)
diff --git a/common/mltools/getopt-c.c b/common/mltools/getopt-c.c
index 7b7e39be2..5fa703428 100644
--- a/common/mltools/getopt-c.c
+++ b/common/mltools/getopt-c.c
@@ -274,6 +274,10 @@ guestfs_int_mllib_getopt_parse (value argsv, value specsv, value anon_funv, valu
has_arg = 1;
break;
+ case 8: /* OptString of string * (string option -> unit) */
+ has_arg = 2;
+ break;
+
default:
error (EXIT_FAILURE, 0,
"internal error: unhandled Tag_val (actionv) = %d",
@@ -286,8 +290,11 @@ guestfs_int_mllib...
2018 Nov 14
1
Re: [PATCH 2/2] build: Replace ./nbdkit with a C program.
...' - but you should
>> already be special-casing that). So is it really necessary to map
>> all the user's short options into a long option before doing the
>> passthrough?
>
> I believe yes, we always need this loop, so that we can test
> long_options[long_index].has_arg.
Ah, but here, we can rely on the fact that optarg is NULL when there is
no option (regardless of whether the option was short or long). (It's
trickier if there are any optional_argument entries for has_arg - but
since we stick to just no_argument and required_argument, we don't have
t...
2018 Aug 21
0
[PATCH 1/2] common/mltools: getopt: add Getopt.OptString
...ons(+), 3 deletions(-)
diff --git a/common/mltools/getopt-c.c b/common/mltools/getopt-c.c
index 7b7e39be2..5fa703428 100644
--- a/common/mltools/getopt-c.c
+++ b/common/mltools/getopt-c.c
@@ -274,6 +274,10 @@ guestfs_int_mllib_getopt_parse (value argsv, value specsv, value anon_funv, valu
has_arg = 1;
break;
+ case 8: /* OptString of string * (string option -> unit) */
+ has_arg = 2;
+ break;
+
default:
error (EXIT_FAILURE, 0,
"internal error: unhandled Tag_val (actionv) = %d",
@@ -286,8 +290,11 @@ guestfs_int_mllib...
2019 Aug 01
0
[PATCH v2 07/11] VSOCK: add AF_VSOCK test cases
....name = "SOCK_STREAM multiple connections",
+ .run_client = test_stream_multiconn_client,
+ .run_server = test_stream_multiconn_server,
+ },
+ {},
+};
+
+static const char optstring[] = "";
+static const struct option longopts[] = {
+ {
+ .name = "control-host",
+ .has_arg = required_argument,
+ .val = 'H',
+ },
+ {
+ .name = "control-port",
+ .has_arg = required_argument,
+ .val = 'P',
+ },
+ {
+ .name = "mode",
+ .has_arg = required_argument,
+ .val = 'm',
+ },
+ {
+ .name = "peer-cid",
+ .has_arg = req...
2017 Dec 22
2
Re: [BUG] Not exiting media forced a promptly close of libvirt 3.10
... config = 0x5557f23845a0
privileged = <optimized out>
implicit_conf = <optimized out>
run_dir = 0x5557f2392d30 "/usr/local/var/run/libvirt"
old_umask = <optimized out>
opts = {{name = 0x5557f0d76acc "verbose", has_arg = 0, flag =
0x7ffdf2c76860, val = 118}, {name = 0x5557f0d76ad4 "daemon",
has_arg = 0, flag = 0x7ffdf2c76864, val = 100}, {name =
0x5557f0d76adb "listen", has_arg = 0, flag = 0x7ffdf2c76868,
val = 108}, {name = 0x5557f0d76bb6 "config", has_ar...
2019 Oct 09
2
[PATCH v2 07/11] VSOCK: add AF_VSOCK test cases
....run_server = test_stream_multiconn_server,
> + },
> + {},
> +};
> +
> +static const char optstring[] = "";
> +static const struct option longopts[] = {
> + {
> + .name = "control-host",
> + .has_arg = required_argument,
> + .val = 'H',
> + },
> + {
> + .name = "control-port",
> + .has_arg = required_argument,
> + .val = 'P',
> + },
> + {
> + .name =...
2019 Oct 09
2
[PATCH v2 07/11] VSOCK: add AF_VSOCK test cases
....run_server = test_stream_multiconn_server,
> + },
> + {},
> +};
> +
> +static const char optstring[] = "";
> +static const struct option longopts[] = {
> + {
> + .name = "control-host",
> + .has_arg = required_argument,
> + .val = 'H',
> + },
> + {
> + .name = "control-port",
> + .has_arg = required_argument,
> + .val = 'P',
> + },
> + {
> + .name =...
2018 Aug 21
4
[PATCH 0/2] RFC: add output selection for --machine-readable
Hi,
this is a first approach (hence RFC, since it misses tests &
documentation) in selecting the output for --machine-readable.
The possible choices are:
* --machine-readable: to stdout, like before
* --machine-readable=file:name-of-file: to the specified file
* --machine-readable=stream:stdout: explicitly to stdout
* --machine-readable=stream:stderr: explicitly to stderr
This makes it
2016 Jan 21
1
[PATCH] tools/virtio: add ringtest utilities
...t(void *arg)
+{
+ set_affinity(arg);
+ run_guest();
+ pthread_exit(NULL);
+}
+
+void *start_host(void *arg)
+{
+ set_affinity(arg);
+ run_host();
+ pthread_exit(NULL);
+}
+
+static const char optstring[] = "";
+static const struct option longopts[] = {
+ {
+ .name = "help",
+ .has_arg = no_argument,
+ .val = 'h',
+ },
+ {
+ .name = "host-affinity",
+ .has_arg = required_argument,
+ .val = 'H',
+ },
+ {
+ .name = "guest-affinity",
+ .has_arg = required_argument,
+ .val = 'G',
+ },
+ {
+ .name = "ring-size",
+ .has_arg...
2016 Jan 21
1
[PATCH] tools/virtio: add ringtest utilities
...t(void *arg)
+{
+ set_affinity(arg);
+ run_guest();
+ pthread_exit(NULL);
+}
+
+void *start_host(void *arg)
+{
+ set_affinity(arg);
+ run_host();
+ pthread_exit(NULL);
+}
+
+static const char optstring[] = "";
+static const struct option longopts[] = {
+ {
+ .name = "help",
+ .has_arg = no_argument,
+ .val = 'h',
+ },
+ {
+ .name = "host-affinity",
+ .has_arg = required_argument,
+ .val = 'H',
+ },
+ {
+ .name = "guest-affinity",
+ .has_arg = required_argument,
+ .val = 'G',
+ },
+ {
+ .name = "ring-size",
+ .has_arg...
2017 Dec 22
2
[BUG] Not exiting media forced a promptly close of libvirt 3.10
Hello,
In the .xml file I use a media which is no longer available.
In the past, I got the information media not available and the
creation of the VM was stopped - O.k. behavior.
Since 3.10 the libvirtd stopped promptly and all open
consoles windows and the virt-manager closed promptly.
For diagnose:
etcsvms1:/kvm/CS8200/M5 # coredumpctl
TIME PID UID GID SIG
2014 May 15
2
Re: guestfsd crashes when the handle is closed
...on = GUESTFS_DIRECTION_CALL, serial = 1192960,
progress_hint = 0, optargs_bitmask = 0, status =
GUESTFS_STATUS_OK}
*#2 0xb76d3190 in main (argc=2, argv=0xbfedcf34) at guestfsd.c:342*
options = <synthetic pointer>
long_options = {{name = 0xb77448b2 "help", has_arg = 0, flag = 0x0,
val = 63}, {name = 0xb7745fb9 "verbose", has_arg = 0, flag =
0x0,
val = 118}, {name = 0x0, has_arg = 0, flag = 0x0, val = 0}}
c = <optimized out>
statbuf = {st_dev = 64769, __pad1 = 0, __st_ino = 2, st_mode =
16877,...
2018 Nov 14
2
Re: [PATCH 2/2] build: Replace ./nbdkit with a C program.
...passthru_format ("--%s", long_options[long_index].name);
Okay, here if you don't reverse map long_index when the user passed a
short option, then you have to do a runtime decision between "--%s" or
"-%c",
> + }
> + else if (long_options[long_index].has_arg) {
> + /* Remaining options that take an argument are passed through. */
> + opt_with_arg:
> + passthru_format ("--%s", long_options[long_index].name);
and repeat that runtime decision,
> + passthru (optarg);
> + }
> + else {
> + /* Rema...
2010 Oct 25
7
[PATCH 0/6] Ocfs2-tools: Add a new tool 'o2info'.
Now it's a good time to introduce the new tool 'o2info' since kernel
part of OCFS2_IOC_INFO ioctl has been pulld upstream by linus.
The following 6 patches have already got sunil's SOBs, and now they're
trying to attract more reviewers before it goes to central repo with
a modification of getting manual pages being introduced.
2019 Aug 01
13
[PATCH v2 00/11] VSOCK: add vsock_test test suite
The vsock_diag.ko module already has a test suite but the core AF_VSOCK
functionality has no tests. This patch series adds several test cases that
exercise AF_VSOCK SOCK_STREAM socket semantics (send/recv, connect/accept,
half-closed connections, simultaneous connections).
Stefan: Do you think we should have a single application or is better to
split it in single tests (e.g.
2019 Dec 18
13
[PATCH net-next v3 00/11] VSOCK: add vsock_test test suite
The vsock_diag.ko module already has a test suite but the core AF_VSOCK
functionality has no tests. This patch series adds several test cases that
exercise AF_VSOCK SOCK_STREAM socket semantics (send/recv, connect/accept,
half-closed connections, simultaneous connections).
The v1 of this series was originally sent by Stefan.
v3:
- Patch 6:
* check the byte received in the recv_byte()
* use
2017 Apr 07
0
[PATCH 2/3] ringtest: support test specific parameters
...test/main.c
@@ -20,6 +20,7 @@
int runcycles = 10000000;
int max_outstanding = INT_MAX;
int batch = 1;
+int param = 0;
bool do_sleep = false;
bool do_relax = false;
@@ -247,6 +248,11 @@ static const struct option longopts[] = {
.val = 'b',
},
{
+ .name = "param",
+ .has_arg = required_argument,
+ .val = 'p',
+ },
+ {
.name = "sleep",
.has_arg = no_argument,
.val = 's',
@@ -274,6 +280,7 @@ static void help(void)
" [--run-cycles C (default: %d)]"
" [--batch b]"
" [--outstanding o]"
+ " [--p...
2017 Apr 07
0
[PATCH 2/3] ringtest: support test specific parameters
...test/main.c
@@ -20,6 +20,7 @@
int runcycles = 10000000;
int max_outstanding = INT_MAX;
int batch = 1;
+int param = 0;
bool do_sleep = false;
bool do_relax = false;
@@ -247,6 +248,11 @@ static const struct option longopts[] = {
.val = 'b',
},
{
+ .name = "param",
+ .has_arg = required_argument,
+ .val = 'p',
+ },
+ {
.name = "sleep",
.has_arg = no_argument,
.val = 's',
@@ -274,6 +280,7 @@ static void help(void)
" [--run-cycles C (default: %d)]"
" [--batch b]"
" [--outstanding o]"
+ " [--p...
2014 May 15
2
Re: guestfsd crashes when the handle is closed
Hello,
So in ubuntu1204 guest This is what i got :
*(gdb)* bt full
* #0* 0x005a9fc0 in exit () from /lib/i386-linux-gnu/libc.so.6
No symbol table info available.
* #1* 0x0805f7dd in ?? ()
No symbol table info available.
* #2* 0x0804aedf in ?? ()
No symbol table info available.
*#3* 0x005904d3 in __libc_start_main () from
/lib/i386-linux-gnu/libc.so.6
No symbol