[libvirt] [PATCH] Change disk type 'dos' to 'msdos'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



parted doesn't seem to want the label 'dos', instead
wanting 'msdos'. Patch is basically s/dos/msdos/

Thanks,
Cole
diff --git a/docs/storage.html.in b/docs/storage.html.in
index 40e8e80..8cab480 100644
--- a/docs/storage.html.in
+++ b/docs/storage.html.in
@@ -258,7 +258,7 @@ libvirt.
     </p>
     <ul>
       <li>
-        <code>dos</code>
+        <code>msdos</code>
       </li>
       <li>
         <code>dvh</code>
@@ -280,7 +280,7 @@ libvirt.
       </li>
     </ul>
     <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.
     </p>
 
diff --git a/src/storage_backend_disk.c b/src/storage_backend_disk.c
index 39b857c..b34dd18 100644
--- a/src/storage_backend_disk.c
+++ b/src/storage_backend_disk.c
@@ -29,7 +29,7 @@
 #include "memory.h"
 
 enum {
-    VIR_STORAGE_POOL_DISK_DOS = 0,
+    VIR_STORAGE_POOL_DISK_MSDOS = 0,
     VIR_STORAGE_POOL_DISK_DVH,
     VIR_STORAGE_POOL_DISK_GPT,
     VIR_STORAGE_POOL_DISK_MAC,
@@ -64,10 +64,10 @@ static int
 virStorageBackendDiskPoolFormatFromString(virConnectPtr conn,
                                           const char *format) {
     if (format == NULL)
-        return VIR_STORAGE_POOL_DISK_DOS;
+        return VIR_STORAGE_POOL_DISK_MSDOS;
 
-    if (STREQ(format, "dos"))
-        return VIR_STORAGE_POOL_DISK_DOS;
+    if (STREQ(format, "msdos"))
+        return VIR_STORAGE_POOL_DISK_MSDOS;
     if (STREQ(format, "dvh"))
         return VIR_STORAGE_POOL_DISK_DVH;
     if (STREQ(format, "gpt"))
@@ -90,8 +90,8 @@ static const char *
 virStorageBackendDiskPoolFormatToString(virConnectPtr conn,
                                         int format) {
     switch (format) {
-    case VIR_STORAGE_POOL_DISK_DOS:
-        return "dos";
+    case VIR_STORAGE_POOL_DISK_MSDOS:
+        return "msdos";
     case VIR_STORAGE_POOL_DISK_DVH:
         return "dvh";
     case VIR_STORAGE_POOL_DISK_GPT:
--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]