search for: d50c737

Displaying 4 results from an estimated 4 matches for "d50c737".

2015 Nov 05
0
[PATCH 2/2] actions: refactor available & feature_available
...AX_PROC_NR | 2 +- src/available.c | 74 ++++++++++++++++++++++++++++++++++++++++++++++++-- src/guestfs-internal.h | 10 +++++++ src/handle.c | 7 +++++ 6 files changed, 101 insertions(+), 56 deletions(-) diff --git a/daemon/available.c b/daemon/available.c index 6409b90..d50c737 100644 --- a/daemon/available.c +++ b/daemon/available.c @@ -33,53 +33,20 @@ GUESTFSD_EXT_CMD(str_grep, grep); GUESTFSD_EXT_CMD(str_modprobe, modprobe); -static int -available (char *const *groups, int error_on_unavailable) +int +do_internal_feature_available (const char *group) { - int av; -...
2015 Nov 05
4
[PATCH 1/2] actions: turn available & feature_available as non-daemon
Rename the current available and feature_available into internal daemon functions, and provide non-daemon functions wrapping them at library side. This will make it possible to e.g. add caching for them. Should be only refactoring, no actual behaviour change. --- daemon/available.c | 4 +- generator/actions.ml | 192 ++++++++++++++++++++++++++++----------------------- po/POTFILES |
2016 Mar 06
8
[PATCH 0/5] Use less stack.
Various changes/fixes to use smaller stack frames. Rich.
2016 Mar 07
2
[PATCH v2] Use less stack.
...== NULL) { + perror ("malloc"); + return -1; + } memcpy (attrval, xattrs->val[xattrp].attrval, xattrs->val[xattrp].attrval_len); attrval[xattrs->val[xattrp].attrval_len] = '\0'; diff --git a/daemon/available.c b/daemon/available.c index d50c737..9716796 100644 --- a/daemon/available.c +++ b/daemon/available.c @@ -70,12 +70,14 @@ do_available_all_groups (void) static int test_proc_filesystems (const char *filesystem) { - size_t len = strlen (filesystem) + 32; - char regex[len]; + CLEANUP_FREE char *regex = NULL; CLEANUP_FREE char...