mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-30 01:43:23 +00:00
* src/lxc_driver.c: adds the getHostname method to the lxc driver
patch by Dan Smith daniel
This commit is contained in:
parent
06e43a8f2c
commit
cab9eed62e
@ -1,3 +1,8 @@
|
|||||||
|
Wed Apr 15 11:33:33 CEST 2009 Daniel Veillard <veillard@redhat.com>
|
||||||
|
|
||||||
|
* src/lxc_driver.c: adds the getHostname method to the lxc driver
|
||||||
|
patch by Dan Smith
|
||||||
|
|
||||||
Tue Apr 14 10:46:44 PDT 2009 Dan Smith <danms@us.ibm.com>
|
Tue Apr 14 10:46:44 PDT 2009 Dan Smith <danms@us.ibm.com>
|
||||||
|
|
||||||
* src/veth.c: Fix veth off-by-one error
|
* src/veth.c: Fix veth off-by-one error
|
||||||
@ -8,7 +13,8 @@ Tue Apr 14 10:46:44 PDT 2009 Dan Smith <danms@us.ibm.com>
|
|||||||
|
|
||||||
Tue Apr 14 14:46:29 CEST 2009 Daniel Veillard <veillard@redhat.com>
|
Tue Apr 14 14:46:29 CEST 2009 Daniel Veillard <veillard@redhat.com>
|
||||||
|
|
||||||
* libvirt.spec.in: fix build on RHEL and Centos 5.x
|
* libvirt.spec.in: fix build on RHEL and Centos 5.x, patch
|
||||||
|
by Joseph Shraibman, fixes #495610
|
||||||
|
|
||||||
Tue Apr 7 14:48:35 CEST 2009 Daniel Veillard <veillard@redhat.com>
|
Tue Apr 7 14:48:35 CEST 2009 Daniel Veillard <veillard@redhat.com>
|
||||||
|
|
||||||
|
@ -1404,6 +1404,20 @@ cleanup:
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static char *lxcGetHostname (virConnectPtr conn)
|
||||||
|
{
|
||||||
|
char *result;
|
||||||
|
|
||||||
|
result = virGetHostname();
|
||||||
|
if (result == NULL) {
|
||||||
|
virReportSystemError (conn, errno,
|
||||||
|
"%s", _("failed to determine host name"));
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
/* Caller frees this string. */
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
/* Function Tables */
|
/* Function Tables */
|
||||||
static virDriver lxcDriver = {
|
static virDriver lxcDriver = {
|
||||||
VIR_DRV_LXC, /* the number virDrvNo */
|
VIR_DRV_LXC, /* the number virDrvNo */
|
||||||
@ -1413,7 +1427,7 @@ static virDriver lxcDriver = {
|
|||||||
NULL, /* supports_feature */
|
NULL, /* supports_feature */
|
||||||
NULL, /* type */
|
NULL, /* type */
|
||||||
lxcVersion, /* version */
|
lxcVersion, /* version */
|
||||||
NULL, /* getHostname */
|
lxcGetHostname, /* getHostname */
|
||||||
NULL, /* getMaxVcpus */
|
NULL, /* getMaxVcpus */
|
||||||
NULL, /* nodeGetInfo */
|
NULL, /* nodeGetInfo */
|
||||||
NULL, /* getCapabilities */
|
NULL, /* getCapabilities */
|
||||||
|
Loading…
Reference in New Issue
Block a user