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

[libvirt] [PATCH] Support for SATA Disks in virDomainDiskBus



Hi All,

I have just added support for SATA Disks in virDomainDiskBus and the patch for 
same is as below.

Regards,
Pritesh
commit 9d43b33fdd595db45d943d074fe6a071fe9cde8f
Author: pritesh <pritesh krishna (none)>
Date:   Thu Nov 12 14:00:50 2009 +0100

    libvirt: Support for SATA Harddisks.

diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index 9e37452..8d9408c 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -104,7 +104,8 @@ VIR_ENUM_IMPL(virDomainDiskBus, VIR_DOMAIN_DISK_BUS_LAST,
               "virtio",
               "xen",
               "usb",
-              "uml")
+              "uml",
+              "sata")
 
 VIR_ENUM_IMPL(virDomainDiskCache, VIR_DOMAIN_DISK_CACHE_LAST,
               "default",
diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h
index f12c722..1fdb4fa 100644
--- a/src/conf/domain_conf.h
+++ b/src/conf/domain_conf.h
@@ -88,6 +88,7 @@ enum virDomainDiskBus {
     VIR_DOMAIN_DISK_BUS_XEN,
     VIR_DOMAIN_DISK_BUS_USB,
     VIR_DOMAIN_DISK_BUS_UML,
+    VIR_DOMAIN_DISK_BUS_SATA,
 
     VIR_DOMAIN_DISK_BUS_LAST
 };
diff --git a/src/qemu/qemu_conf.c b/src/qemu/qemu_conf.c
index 5f492dd..62b42fe 100644
--- a/src/qemu/qemu_conf.c
+++ b/src/qemu/qemu_conf.c
@@ -63,7 +63,8 @@ VIR_ENUM_IMPL(virDomainDiskQEMUBus, VIR_DOMAIN_DISK_BUS_LAST,
               "virtio",
               "xen",
               "usb",
-              "uml")
+              "uml",
+              "sata")
 
 
 VIR_ENUM_DECL(qemuDiskCacheV1)

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