rename the disk type from 'dos' to 'msdos'

* docs/storage.html[.in] src/storage_backend_disk.c: patch from
  Cole Robinson to rename the disk type from 'dos' to 'msdos'
Daniel
This commit is contained in:
Daniel Veillard 2008-08-12 11:26:00 +00:00
parent 413c5dbf07
commit ef7fec1168
4 changed files with 15 additions and 10 deletions

View File

@ -1,3 +1,8 @@
Tue Aug 12 13:20:07 CEST 2008 Daniel Veillard <veillard@redhat.com>
* docs/storage.html[.in] src/storage_backend_disk.c: patch from
Cole Robinson to rename the disk type from 'dos' to 'msdos'
Tue Aug 12 17:30:50 JST 2008 Atsushi SAKAI <sakaia@jp.fujitsu.com> Tue Aug 12 17:30:50 JST 2008 Atsushi SAKAI <sakaia@jp.fujitsu.com>
* src/domain_conf.h src/qemu_driver.c: name changing of * src/domain_conf.h src/qemu_driver.c: name changing of

View File

@ -331,7 +331,7 @@ libvirt.
the common partition table types: the common partition table types:
</p> </p>
<ul><li> <ul><li>
<code>dos</code> <code>msdos</code>
</li><li> </li><li>
<code>dvh</code> <code>dvh</code>
</li><li> </li><li>
@ -346,7 +346,7 @@ libvirt.
<code>sun</code> <code>sun</code>
</li></ul> </li></ul>
<p> <p>
The <code>dos</code> or <code>gpt</code> formats are recommended for The <code>msdos</code> or <code>gpt</code> formats are recommended for
best portability - the latter is needed for disks larger than 2TB. best portability - the latter is needed for disks larger than 2TB.
</p> </p>
<h3>Valid volume format types</h3> <h3>Valid volume format types</h3>

View File

@ -258,7 +258,7 @@ libvirt.
</p> </p>
<ul> <ul>
<li> <li>
<code>dos</code> <code>msdos</code>
</li> </li>
<li> <li>
<code>dvh</code> <code>dvh</code>
@ -280,7 +280,7 @@ libvirt.
</li> </li>
</ul> </ul>
<p> <p>
The <code>dos</code> or <code>gpt</code> formats are recommended for The <code>msdos</code> or <code>gpt</code> formats are recommended for
best portability - the latter is needed for disks larger than 2TB. best portability - the latter is needed for disks larger than 2TB.
</p> </p>

View File

@ -29,7 +29,7 @@
#include "memory.h" #include "memory.h"
enum { enum {
VIR_STORAGE_POOL_DISK_DOS = 0, VIR_STORAGE_POOL_DISK_MSDOS = 0,
VIR_STORAGE_POOL_DISK_DVH, VIR_STORAGE_POOL_DISK_DVH,
VIR_STORAGE_POOL_DISK_GPT, VIR_STORAGE_POOL_DISK_GPT,
VIR_STORAGE_POOL_DISK_MAC, VIR_STORAGE_POOL_DISK_MAC,
@ -64,10 +64,10 @@ static int
virStorageBackendDiskPoolFormatFromString(virConnectPtr conn, virStorageBackendDiskPoolFormatFromString(virConnectPtr conn,
const char *format) { const char *format) {
if (format == NULL) if (format == NULL)
return VIR_STORAGE_POOL_DISK_DOS; return VIR_STORAGE_POOL_DISK_MSDOS;
if (STREQ(format, "dos")) if (STREQ(format, "msdos"))
return VIR_STORAGE_POOL_DISK_DOS; return VIR_STORAGE_POOL_DISK_MSDOS;
if (STREQ(format, "dvh")) if (STREQ(format, "dvh"))
return VIR_STORAGE_POOL_DISK_DVH; return VIR_STORAGE_POOL_DISK_DVH;
if (STREQ(format, "gpt")) if (STREQ(format, "gpt"))
@ -90,8 +90,8 @@ static const char *
virStorageBackendDiskPoolFormatToString(virConnectPtr conn, virStorageBackendDiskPoolFormatToString(virConnectPtr conn,
int format) { int format) {
switch (format) { switch (format) {
case VIR_STORAGE_POOL_DISK_DOS: case VIR_STORAGE_POOL_DISK_MSDOS:
return "dos"; return "msdos";
case VIR_STORAGE_POOL_DISK_DVH: case VIR_STORAGE_POOL_DISK_DVH:
return "dvh"; return "dvh";
case VIR_STORAGE_POOL_DISK_GPT: case VIR_STORAGE_POOL_DISK_GPT: