Vered,
VmDevice has "isPlugged" field,
Why not have somehow in your inheritence (either Disk or a subclass) a field :
"VmDevice device"
and have isPlugged method called "device.isPlugged()" ?
Then you can also add the readOnly property which is not represented at VmDevice.
Does this sound logical to you?
----- Original Message -----
From: "Vered Volansky" <vered(a)redhat.com>
To: engine-devel(a)ovirt.org
Sent: Monday, May 27, 2013 6:18:58 PM
Subject: [Engine-devel] Disk BE very small refactoring
Hi All,
Please express your opinion if you have any -
Currently Disk BE has a plugged property, which should be a property of the
relationship between vm(or template) and a disk.
I plan to remove this property from the Disk entity, and add new entity,
called DeviceDisk.
This should inherit from Disk and contain the vm/template guid and the
plugged property at first round.
At second round it'll also contain the readOnly property, for RO disks, TBD
right after.
Appreciate any input,
Vered
_______________________________________________
Engine-devel mailing list
Engine-devel(a)ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-devel