提交 6f87fb9b 编写于 作者: P Peter Krempa

util: storage: Copy parent's disk metadata to backing chain elements

When discovering a disk backing chain the parent disk's metadata need to
be populated into the guest images so that each piece of the backing
chain contains a copy of those. This will allow us to refactor the
security driver so that it will not need to carry around the original
disk definition.
上级 3bd69ab9
......@@ -2315,9 +2315,17 @@ virStorageSourceNewFromBacking(virStorageSourcePtr parent)
}
}
}
/* copy parent's labelling and other top level stuff */
if (virStorageSourceInitChainElement(ret, parent, false) < 0)
goto error;
}
return ret;
error:
virStorageSourceFree(ret);
return NULL;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册