Re: [PATCH 1/3] hostdev: Add "rawio" attribute to _virDomainHostdevSubsysSCSI

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

 



On 10.09.2014 01:40, John Ferlan wrote:
Add the 'rawio' attribute to match _virDomainDiskDef

Signed-off-by: John Ferlan <jferlan@xxxxxxxxxx>
---
  src/conf/domain_conf.h | 2 ++
  1 file changed, 2 insertions(+)

diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h
index 1107fa8..b1d13ef 100644
--- a/src/conf/domain_conf.h
+++ b/src/conf/domain_conf.h
@@ -439,6 +439,8 @@ typedef virDomainHostdevSubsysSCSI *virDomainHostdevSubsysSCSIPtr;
  struct _virDomainHostdevSubsysSCSI {
      int protocol; /* enum virDomainHostdevSCSIProtocolType */
      int sgio; /* enum virDomainDeviceSGIO */
+    bool rawio_specified;
+    int rawio; /* no = 0, yes = 1 */

Instead of introducing these two values, would it be possible just to use virTristateBool which already contains the tristate values? Oh, and virDomainDiskDef should be fixed too.

      union {
          virDomainHostdevSubsysSCSIHost host;
          virDomainHostdevSubsysSCSIiSCSI iscsi;


Michal

--
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]