提交 bd6ae7b8 编写于 作者: M Maxim Nestratov 提交者: Dmitry Guryanov

vz: remove storage driver as never used

In fact, it was never used as far as vz has no features supporting it.
That is why there will be no harm to anyone if we just remove this code to
prevent further misunderstanding and efforts to support dead code.
Signed-off-by: NMaxim Nestratov <mnestratov@virtuozzo.com>
上级 439f29e7
......@@ -111,7 +111,6 @@ src/vz/vz_driver.c
src/vz/vz_sdk.c
src/vz/vz_utils.c
src/vz/vz_utils.h
src/vz/vz_storage.c
src/phyp/phyp_driver.c
src/qemu/qemu_agent.c
src/qemu/qemu_capabilities.c
......
......@@ -838,7 +838,6 @@ VZ_DRIVER_SOURCES = \
vz/vz_driver.c \
vz/vz_utils.c \
vz/vz_utils.h \
vz/vz_storage.c \
vz/vz_sdk.h \
vz/vz_sdk.c
......
......@@ -308,8 +308,7 @@ vzConnectOpen(virConnectPtr conn,
return VIR_DRV_OPEN_ERROR;
}
if ((ret = vzOpenDefault(conn)) != VIR_DRV_OPEN_SUCCESS ||
(ret = vzStorageOpen(conn, flags)) != VIR_DRV_OPEN_SUCCESS) {
if ((ret = vzOpenDefault(conn)) != VIR_DRV_OPEN_SUCCESS) {
vzConnectClose(conn);
return ret;
}
......@@ -325,8 +324,6 @@ vzConnectClose(virConnectPtr conn)
if (!privconn)
return 0;
vzStorageClose(conn);
vzDriverLock(privconn);
prlsdkUnsubscribeFromPCSEvents(privconn);
virObjectUnref(privconn->caps);
......@@ -1398,7 +1395,6 @@ static virHypervisorDriver vzDriver = {
static virConnectDriver vzConnectDriver = {
.hypervisorDriver = &vzDriver,
.storageDriver = &vzStorageDriver,
};
/* Parallels domain type backward compatibility*/
......
此差异已折叠。
......@@ -94,10 +94,6 @@ struct vzDomObj {
typedef struct vzDomObj *vzDomObjPtr;
virDrvOpenStatus vzStorageOpen(virConnectPtr conn, unsigned int flags);
int vzStorageClose(virConnectPtr conn);
extern virStorageDriver vzStorageDriver;
virDomainObjPtr vzDomObjFromDomain(virDomainPtr domain);
virDomainObjPtr vzDomObjFromDomainRef(virDomainPtr domain);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册