const char **regex,
int *nvars,
virStorageBackendListVolRegexFunc func,
- void *data,
- int *outexit)
+ void *data)
{
int fd = -1, err, ret = -1;
FILE *list = NULL;
}
}
- ret = virCommandWait(cmd, outexit);
+ ret = virCommandWait(cmd, NULL);
cleanup:
if (groups) {
for (j = 0 ; j < totgroups ; j++)
const char **regex ATTRIBUTE_UNUSED,
int *nvars ATTRIBUTE_UNUSED,
virStorageBackendListVolRegexFunc func ATTRIBUTE_UNUSED,
- void *data ATTRIBUTE_UNUSED,
- int *outexit ATTRIBUTE_UNUSED)
+ void *data ATTRIBUTE_UNUSED)
{
- virStorageReportError(VIR_ERR_INTERNAL_ERROR, _("%s not implemented on Win32"), __FUNCTION__);
+ virStorageReportError(VIR_ERR_INTERNAL_ERROR,
+ _("%s not implemented on Win32"), __FUNCTION__);
return -1;
}
const char **regex,
int *nvars,
virStorageBackendListVolRegexFunc func,
- void *data,
- int *exitstatus);
+ void *data);
int virStorageBackendRunProgNul(virStoragePoolObjPtr pool,
const char **prog,
};
const char *prog[] = { SHOWMOUNT, "--no-headers", "--exports", NULL, NULL };
virStoragePoolSourcePtr source = NULL;
- int exitstatus;
char *retval = NULL;
unsigned int i;
prog[3] = source->host.name;
if (virStorageBackendRunProgRegex(NULL, prog, 1, regexes, vars,
- virStorageBackendFileSystemNetFindPoolSourcesFunc,
- &state, &exitstatus) < 0)
+ virStorageBackendFileSystemNetFindPoolSourcesFunc,
+ &state) < 0)
goto cleanup;
retval = virStoragePoolSourceListFormat(&state.list);
regexes,
vars,
virStorageBackendISCSIExtractSession,
- &session,
- NULL) < 0)
+ &session) < 0)
return NULL;
if (session == NULL &&
};
struct virStorageBackendISCSITargetList list;
int i;
- int exitstatus;
memset(&list, 0, sizeof(list));
regexes,
vars,
virStorageBackendISCSIGetTargets,
- &list,
- &exitstatus) < 0) {
- virStorageReportError(VIR_ERR_INTERNAL_ERROR,
- "%s", _("iscsiadm command failed"));
- return -1;
- }
-
- if (exitstatus != 0) {
- virStorageReportError(VIR_ERR_INTERNAL_ERROR,
- _("iscsiadm sendtargets command failed with exitstatus %d"),
- exitstatus);
+ &list) < 0) {
return -1;
}
pool->def->source.name, NULL
};
- int exitstatus;
-
if (virStorageBackendRunProgRegex(pool,
prog,
1,
regexes,
vars,
virStorageBackendLogicalMakeVol,
- vol,
- &exitstatus) < 0) {
- virStorageReportError(VIR_ERR_INTERNAL_ERROR,
- "%s", _("lvs command failed"));
- return -1;
- }
-
- if (exitstatus != 0) {
- virStorageReportError(VIR_ERR_INTERNAL_ERROR,
- _("lvs command failed with exitstatus %d"),
- exitstatus);
+ vol) < 0) {
return -1;
}
};
const char *const prog[] = { PVS, "--noheadings", "-o", "pv_name,vg_name", NULL };
const char *const scanprog[] = { VGSCAN, NULL };
- int exitstatus;
char *retval = NULL;
virStoragePoolSourceList sourceList;
int i;
* that might be hanging around, so if this fails for some reason, the
* worst that happens is that scanning doesn't pick everything up
*/
- if (virRun(scanprog, &exitstatus) < 0) {
+ if (virRun(scanprog, NULL) < 0) {
VIR_WARN("Failure when running vgscan to refresh physical volumes");
}
sourceList.type = VIR_STORAGE_POOL_LOGICAL;
if (virStorageBackendRunProgRegex(NULL, prog, 1, regexes, vars,
- virStorageBackendLogicalFindPoolSourcesFunc,
- &sourceList, &exitstatus) < 0)
+ virStorageBackendLogicalFindPoolSourcesFunc,
+ &sourceList) < 0)
return NULL;
retval = virStoragePoolSourceListFormat(&sourceList);
"--nosuffix", "--options", "vg_size,vg_free",
pool->def->source.name, NULL
};
- int exitstatus;
virFileWaitForDevices();
regexes,
vars,
virStorageBackendLogicalRefreshPoolFunc,
- NULL,
- &exitstatus) < 0) {
- virStoragePoolObjClearVols(pool);
- return -1;
- }
-
- if (exitstatus != 0) {
+ NULL) < 0) {
virStoragePoolObjClearVols(pool);
return -1;
}