+Wed Aug 13 11:43:36 CEST 2008 Daniel Veillard <veillard@redhat.com>
+
+ * docs/storage.html[.in] src/storage_backend_disk.c: revert previous
+ msdos patch and apply new one from Cole Robinson
+
Tue Aug 12 19:37:23 CEST 2008 Jim Meyering <meyering@redhat.com>
rewrite virFileLinkPointsTo
the common partition table types:
</p>
<ul><li>
- <code>msdos</code>
+ <code>dos</code>
</li><li>
<code>dvh</code>
</li><li>
<code>sun</code>
</li></ul>
<p>
- The <code>msdos</code> or <code>gpt</code> formats are recommended for
+ The <code>dos</code> or <code>gpt</code> formats are recommended for
best portability - the latter is needed for disks larger than 2TB.
</p>
<h3>Valid volume format types</h3>
#include "memory.h"
enum {
- VIR_STORAGE_POOL_DISK_MSDOS = 0,
+ VIR_STORAGE_POOL_DISK_DOS = 0,
VIR_STORAGE_POOL_DISK_DVH,
VIR_STORAGE_POOL_DISK_GPT,
VIR_STORAGE_POOL_DISK_MAC,
virStorageBackendDiskPoolFormatFromString(virConnectPtr conn,
const char *format) {
if (format == NULL)
- return VIR_STORAGE_POOL_DISK_MSDOS;
+ return VIR_STORAGE_POOL_DISK_DOS;
- if (STREQ(format, "msdos"))
- return VIR_STORAGE_POOL_DISK_MSDOS;
+ if (STREQ(format, "dos"))
+ return VIR_STORAGE_POOL_DISK_DOS;
if (STREQ(format, "dvh"))
return VIR_STORAGE_POOL_DISK_DVH;
if (STREQ(format, "gpt"))
virStorageBackendDiskPoolFormatToString(virConnectPtr conn,
int format) {
switch (format) {
- case VIR_STORAGE_POOL_DISK_MSDOS:
- return "msdos";
+ case VIR_STORAGE_POOL_DISK_DOS:
+ return "dos";
case VIR_STORAGE_POOL_DISK_DVH:
return "dvh";
case VIR_STORAGE_POOL_DISK_GPT:
pool->def->source.devices[0].path,
"mklabel",
"--script",
- virStorageBackendDiskPoolFormatToString(conn, pool->def->source.format),
+ ((pool->def->source.format == VIR_STORAGE_POOL_DISK_DOS) ? "msdos" :
+ virStorageBackendDiskPoolFormatToString(conn,
+ pool->def->source.format)),
NULL,
};