* src/xml.c: another patch from David Lutterkort fixing a typo

when generating physical block devices descriptions.
Daniel
This commit is contained in:
Daniel Veillard 2006-03-04 09:00:15 +00:00
parent a720116103
commit 0742c9313e
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
Sat Mar 4 09:59:13 CET 2006 Daniel Veillard <veillard@redhat.com>
* src/xml.c: another patch from David Lutterkort fixing a typo
when generating physical block devices descriptions.
Sat Mar 4 09:56:18 CET 2006 Daniel Veillard <veillard@redhat.com>
* libvirt.spec.in: applied patch from David Lutterkort adding

View File

@ -656,9 +656,9 @@ virDomainParseXMLDiskDesc(xmlNodePtr node, virBufferPtr buf) {
virBufferVSprintf(buf, "(uname 'file:%s')", source);
else if (typ == 1) {
if (source[0] == '/')
virBufferVSprintf(buf, "(uname 'phys:%s')", source);
virBufferVSprintf(buf, "(uname 'phy:%s')", source);
else
virBufferVSprintf(buf, "(uname 'phys:/dev/%s')", source);
virBufferVSprintf(buf, "(uname 'phy:/dev/%s')", source);
}
if (ro == 0)
virBufferVSprintf(buf, "(mode 'w')");