storageDriverAutostart(void)
{
size_t i;
- char *stateFile = NULL;
virConnectPtr conn = NULL;
/* XXX Remove hardcoding of QEMU URI */
}
if (started) {
+ char *stateFile;
+
virStoragePoolObjClearVols(pool);
stateFile = virFileBuildPath(driver->stateDir,
pool->def->name, ".xml");
VIR_ERROR(_("Failed to autostart storage pool '%s': %s"),
pool->def->name, err ? err->message :
_("no error message found"));
- VIR_FREE(stateFile);
- virStoragePoolObjUnlock(pool);
- continue;
+ } else {
+ pool->active = true;
}
- pool->active = true;
+ VIR_FREE(stateFile);
}
virStoragePoolObjUnlock(pool);
}