search for: error_on_unavail

Displaying 2 results from an estimated 2 matches for "error_on_unavail".

2015 Nov 05
0
[PATCH 2/2] actions: refactor available & feature_available
...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; - size_t i, j; - - for (i = 0; groups[i] != NULL; ++i) { - for (j = 0; optgroups[j].group != NULL; ++j) { - if (STREQ (groups[i], optgroups[j].group)) { - av = optgroups[j].available (); - if (!av) {...
2015 Nov 05
4
[PATCH 1/2] actions: turn available & feature_available as non-daemon
...| 34 +++++++++ 6 files changed, 143 insertions(+), 91 deletions(-) create mode 100644 src/available.c diff --git a/daemon/available.c b/daemon/available.c index 54c6b9b..6409b90 100644 --- a/daemon/available.c +++ b/daemon/available.c @@ -67,13 +67,13 @@ available (char *const *groups, int error_on_unavailable) } int -do_feature_available (char *const *groups) +do_internal_feature_available (char *const *groups) { return available (groups, 0); } int -do_available (char *const *groups) +do_internal_available (char *const *groups) { if (available (groups, 1) == -1) return -1; diff...