提交 84ef468b 编写于 作者: D Daniel P. Berrange

Fix some misleading comments in XM driver

上级 2c7be88d
Tue Jan 20 18:16:53 GMT 2009 Daniel P. Berrange <berrange@redhat.com>
* src/xm_internal.c: Fix 2 misleading comments & potential
NULL deference
Tue Jan 20 17:46:53 GMT 2009 Daniel P. Berrange <berrange@redhat.com> Tue Jan 20 17:46:53 GMT 2009 Daniel P. Berrange <berrange@redhat.com>
* src/remote_internal.c: Remove a use of strerror() in error * src/remote_internal.c: Remove a use of strerror() in error
......
...@@ -559,10 +559,10 @@ int xenXMConfigCacheRefresh (virConnectPtr conn) { ...@@ -559,10 +559,10 @@ int xenXMConfigCacheRefresh (virConnectPtr conn) {
/* /*
* Open a 'connection' to the config file directory ;-) * The XM driver keeps a cache of config files as virDomainDefPtr
* We just create a hash table to store config files in. * objects in the xenUnifiedPrivatePtr. Optionally inotify lets
* We only support a single directory, so repeated calls * us watch for changes (see separate driver), otherwise we poll
* to open all end up using the same cache of files * every few seconds
*/ */
virDrvOpenStatus virDrvOpenStatus
xenXMOpen (virConnectPtr conn, xenXMOpen (virConnectPtr conn,
...@@ -591,8 +591,8 @@ xenXMOpen (virConnectPtr conn, ...@@ -591,8 +591,8 @@ xenXMOpen (virConnectPtr conn,
} }
/* /*
* Free the config files in the cache if this is the * Free the cached config files associated with this
* last connection * connection
*/ */
int xenXMClose(virConnectPtr conn) { int xenXMClose(virConnectPtr conn) {
xenUnifiedPrivatePtr priv = conn->privateData; xenUnifiedPrivatePtr priv = conn->privateData;
...@@ -1290,7 +1290,7 @@ no_memory: ...@@ -1290,7 +1290,7 @@ no_memory:
* domain, suitable for later feeding for virDomainCreateXML * domain, suitable for later feeding for virDomainCreateXML
*/ */
char *xenXMDomainDumpXML(virDomainPtr domain, int flags) { char *xenXMDomainDumpXML(virDomainPtr domain, int flags) {
xenUnifiedPrivatePtr priv = domain->conn->privateData; xenUnifiedPrivatePtr priv;
const char *filename; const char *filename;
xenXMConfCachePtr entry; xenXMConfCachePtr entry;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册