while (next) {
VIR_FREE(next->nodeformat);
- VIR_FREE(next->nodebacking);
+ VIR_FREE(next->nodestorage);
next = next->backingStore;
}
virStorageSourcePtr src = disk->src;
/* don't attempt the detection if the top level already has node names */
- if (!parentnode || src->nodeformat || src->nodebacking)
+ if (!parentnode || src->nodeformat || src->nodestorage)
return 0;
while (src && parentnode) {
if (!(entry = virHashLookup(table, parentnode)))
break;
- if (src->nodeformat || src->nodebacking) {
+ if (src->nodeformat || src->nodestorage) {
if (STRNEQ_NULLABLE(src->nodeformat, entry->nodeformat) ||
- STRNEQ_NULLABLE(src->nodebacking, entry->nodestorage))
+ STRNEQ_NULLABLE(src->nodestorage, entry->nodestorage))
goto error;
break;
} else {
if (VIR_STRDUP(src->nodeformat, entry->nodeformat) < 0 ||
- VIR_STRDUP(src->nodebacking, entry->nodestorage) < 0)
+ VIR_STRDUP(src->nodestorage, entry->nodestorage) < 0)
goto error;
}
unsigned long long tmp;
int ret = -1;
- if (src->nodebacking &&
- (data = virHashLookup(nodedata, src->nodebacking))) {
+ if (src->nodestorage &&
+ (data = virHashLookup(nodedata, src->nodestorage))) {
if (virJSONValueObjectGetNumberUlong(data, "write_threshold", &tmp) == 0 &&
tmp > 0)
QEMU_ADD_BLOCK_PARAM_ULL(record, maxparams, block_idx,
if (!(src = qemuDomainGetStorageSourceByDevstr(dev, vm->def)))
goto endjob;
- if (!src->nodebacking &&
+ if (!src->nodestorage &&
qemuBlockNodeNamesDetect(driver, vm, QEMU_ASYNC_JOB_NONE) < 0)
goto endjob;
- if (!src->nodebacking) {
+ if (!src->nodestorage) {
virReportError(VIR_ERR_OPERATION_UNSUPPORTED,
_("threshold currently can't be set for block device '%s'"),
dev);
goto endjob;
}
- if (VIR_STRDUP(nodename, src->nodebacking) < 0)
+ if (VIR_STRDUP(nodename, src->nodestorage) < 0)
goto endjob;
qemuDomainObjEnterMonitor(driver, vm);
VIR_STRDUP(ret->snapshot, src->snapshot) < 0 ||
VIR_STRDUP(ret->configFile, src->configFile) < 0 ||
VIR_STRDUP(ret->nodeformat, src->nodeformat) < 0 ||
- VIR_STRDUP(ret->nodebacking, src->nodebacking) < 0 ||
+ VIR_STRDUP(ret->nodestorage, src->nodestorage) < 0 ||
VIR_STRDUP(ret->compat, src->compat) < 0)
goto error;
virStorageNetHostDefFree(def->nhosts, def->hosts);
virStorageAuthDefFree(def->auth);
- VIR_FREE(def->nodebacking);
+ VIR_FREE(def->nodestorage);
VIR_FREE(def->nodeformat);
virStorageSourceBackingStoreClear(def);
for (tmp = top; tmp; tmp = tmp->backingStore) {
if ((tmp->nodeformat && STREQ(tmp->nodeformat, nodeName)) ||
- (tmp->nodebacking && STREQ(tmp->nodebacking, nodeName)))
+ (tmp->nodestorage && STREQ(tmp->nodestorage, nodeName)))
return tmp;
if (idx)
/* metadata that allows identifying given storage source */
char *nodeformat; /* name of the format handler object */
- char *nodebacking; /* name of the backing storage object */
+ char *nodestorage; /* name of the storage object */
};