+Thu Jun 25 17:12:09 CEST 2009 Daniel Veillard <veillard@redhat.com>
+
+ * src/storage_conf.c: fix reading of storage pool definitions at startup
+ patch by Cole Robinson
+
Thu Jun 25 16:57:40 CEST 2009 Daniel Veillard <veillard@redhat.com>
* src/uml_driver.c: fix UML driver logging macros, patch by Amy
virStoragePoolObjListPtr pools,
const char *file,
const char *path,
- const char *xml,
const char *autostartLink) {
virStoragePoolDefPtr def;
virStoragePoolObjPtr pool;
- if (!(def = virStoragePoolDefParse(NULL, xml, file))) {
+ if (!(def = virStoragePoolDefParseFile(conn, path))) {
return NULL;
}
}
while ((entry = readdir(dir))) {
- char *xml = NULL;
char path[PATH_MAX];
char autostartLink[PATH_MAX];
virStoragePoolObjPtr pool;
continue;
}
- if (virFileReadAll(path, 8192, &xml) < 0)
- continue;
-
- pool = virStoragePoolObjLoad(conn, pools, entry->d_name, path, xml, autostartLink);
+ pool = virStoragePoolObjLoad(conn, pools, entry->d_name, path,
+ autostartLink);
if (pool)
virStoragePoolObjUnlock(pool);
-
- VIR_FREE(xml);
}
closedir(dir);