Displaying 10 results from an estimated 10 matches for "reexeced_".
Did you mean:
reexeced
2020 Jun 02
0
[PATCH nbdkit 2/5] vddk: Move reexec code to a new file.
...+ while (len < buflen) {
+ if (string_vector_append (&argv, buf + len) == -1) {
+ argv_realloc_fail:
+ nbdkit_debug ("argv: realloc: %m");
+ return;
+ }
+ len += strlen (buf + len) + 1;
+ }
+ if (!env)
+ env = "";
+ nbdkit_debug ("adding reexeced_=%s", env);
+ if (asprintf (&reexeced, "reexeced_=%s", env) == -1)
+ goto argv_realloc_fail;
+ if (string_vector_append (&argv, reexeced) == -1)
+ goto argv_realloc_fail;
+ if (string_vector_append (&argv, NULL) == -1)
+ goto argv_realloc_fail;
+
+ if (env[0])...
2020 Jun 02
9
[PATCH nbdkit 0/5] vddk: Fix password parameter.
Probably needs a bit of cleanup, but seems like it is generally the
right direction.
One thing I've noticed is that the expect test randomly (but rarely)
hangs :-( I guess something is racey but I don't know what at the
moment.
Rich.
2020 Feb 18
4
[nbdkit PATCH v7 0/2] vddk: Drive library loading from libdir parameter.
In v7:
everything should work now! The re-exec code is slightly simplified,
with Rich's suggestion to pass the original LD_LIBRARY_PATH rather
than just the prefix being added, and I've now finished wiring up the
initial dlopen() check into code that correctly computes the right
prefix dir to add to LD_LIBRARY_PATH.
Eric Blake (1):
vddk: Add re-exec with altered environment
Richard
2020 Apr 19
2
[PATCH nbdkit 1/2] vddk: Use new vector library to allocate the argv list.
...v, buf + len) == -1) {
+ argv_realloc_fail:
+ nbdkit_debug ("argv: realloc: %m");
return;
}
- argv = tmp;
- argv[argc++] = buf + len;
len += strlen (buf + len) + 1;
}
if (!env)
env = "";
- nbdkit_debug ("original argc == %d, adding reexeced_=%s", argc, env);
- if (asprintf (&reexeced, "reexeced_=%s", env) == -1) {
- nbdkit_debug ("failure to re-exec: %m");
- return;
- }
- argv[argc++] = reexeced;
- argv[argc] = NULL;
+ nbdkit_debug ("adding reexeced_=%s", env);
+ if (asprintf (&ree...
2020 Feb 18
2
[nbdkit PATCH v6] vddk: Add re-exec with altered environment
...t;config") == 0) {
/* See FILENAMES AND PATHS in nbdkit-plugin(3). */
free (config);
@@ -199,12 +203,15 @@ vddk_config (const char *key, const char *value)
if (nbdkit_parse_uint16_t ("port", value, &port) == -1)
return -1;
}
+ else if (strcmp (key, "reexeced_") == 0) {
+ /* Special name because it is only for internal use. */
+ reexeced = value;
+ }
else if (strcmp (key, "server") == 0) {
server_name = value;
}
else if (strcmp (key, "single-link") == 0) {
- int r = nbdkit_parse_bool (value);
-
+ r = nb...
2020 Jun 02
0
[PATCH nbdkit 3/5] vddk: Miscellaneous improvements to reexec code.
...(buf.ptr + len) + 1) {
+ if (string_vector_append (&argv, buf.ptr + len) == -1) {
argv_realloc_fail:
nbdkit_debug ("argv: realloc: %m");
return;
}
- len += strlen (buf + len) + 1;
}
+
if (!env)
env = "";
nbdkit_debug ("adding reexeced_=%s", env);
@@ -139,8 +152,8 @@ perform_reexec (const char *env, const char *prepend)
nbdkit_debug ("re-executing with updated LD_LIBRARY_PATH=%s", library);
fflush (NULL);
- execvp ("/proc/self/exe", argv.ptr);
- nbdkit_debug ("failure to execvp: %m");
+...
2020 Aug 06
5
[PATCH nbdkit NOT WORKING 0/2] vddk: Relax threading model.
I believe this roughly implements Nir's proposal here:
https://www.redhat.com/archives/libguestfs/2020-August/msg00028.html
Unfortunately it doesn't work for me. It actually slows things down
quite a lot, for reasons I don't understand. Note the adjustment of
the pool-max parameter and how it affects the total time. The results
are quite reproducible.
$ ./nbdkit -r -U - vddk
2020 Aug 06
0
[PATCH nbdkit 2/2] vddk: Relax thread model to PARALLEL and implement a disk handle pool.
...;port", value, &port) == -1)
return -1;
}
+ else if (strcmp (key, "pool-max") == 0) {
+ if (nbdkit_parse_unsigned ("pool-max", value, &pool_max) == -1)
+ return -1;
+ if (pool_max < 1)
+ pool_max = 1;
+ }
else if (strcmp (key, "reexeced_") == 0) {
/* Special name because it is only for internal use. */
reexeced = (char *)value;
@@ -482,20 +490,37 @@ vddk_dump_plugin (void)
* https://code.vmware.com/docs/11750/virtual-disk-development-kit-programming-guide/GUID-6BE903E8-DC70-46D9-98E4-E34A2002C2AD.html
*
* Befor...
2020 Feb 18
0
[nbdkit PATCH v7 2/2] vddk: Drive library loading from libdir parameter.
...v ("LD_LIBRARY_PATH");
nbdkit_debug ("cleaning up after re-exec");
- if (!env || strstr (env, reexeced) != 0 ||
+ if (!env || strstr (env, reexeced) == NULL ||
(libdir && strncmp (env, libdir, strlen (libdir)) != 0)) {
nbdkit_error ("'reexeced_' set with garbled environment");
return -1;
@@ -453,18 +493,26 @@ vddk_config_complete (void)
#undef missing
}
+ if (!libdir) {
+ libdir = strdup (VDDK_LIBDIR);
+ if (!libdir) {
+ nbdkit_error ("strdup: %m");
+ return -1;
+ }
+ }
+
load_library...
2020 Aug 06
3
Re: [PATCH nbdkit 2/2] vddk: Relax thread model to PARALLEL and implement a disk handle pool.
...return -1;
> }
> + else if (strcmp (key, "pool-max") == 0) {
> + if (nbdkit_parse_unsigned ("pool-max", value, &pool_max) == -1)
> + return -1;
> + if (pool_max < 1)
> + pool_max = 1;
> + }
> else if (strcmp (key, "reexeced_") == 0) {
> /* Special name because it is only for internal use. */
> reexeced = (char *)value;
> @@ -482,20 +490,37 @@ vddk_dump_plugin (void)
> *
> https://code.vmware.com/docs/11750/virtual-disk-development-kit-programming-guide/GUID-6BE903E8-DC70-46D9-98E4-E34A20...