Re: [Engine-devel] Getting the storage domain of a LunDisk
On 8/8/12 2:58 AM, Mike Kolesnik mkole...@redhat.com wrote: - Original Message - On 08/07/2012 05:06 PM, Hopper, Ricky wrote: Hi all, Does anyone know the best way to get the storage domain of a LunDisk object? I don't know if there's some query or anything I'm failing to find, but I can't find anything within the class itself that's definitive. a LUN disk is not in any storage domain? AFAIK LUN disk simply resides on a LUN, that's why it has the field: private LUNs lun; A SD can possibly also reside on this LUN if this behaviour is desirable (I'm not sure if this is acceptable or not in oVirt), but is not necessary for the disk to function. Alright, that makes sense. Thanks! ___ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel ___ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel
[Engine-devel] Getting the storage domain of a LunDisk
Hi all, Does anyone know the best way to get the storage domain of a LunDisk object? I don't know if there's some query or anything I'm failing to find, but I can't find anything within the class itself that's definitive. Thanks, - Ricky ___ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel
Re: [Engine-devel] Getting the storage domain of a LunDisk
On 08/07/2012 10:06 AM, Hopper, Ricky wrote: Hi all, Does anyone know the best way to get the storage domain of a LunDisk object? I don't know if there's some query or anything I'm failing to find, but I can't find anything within the class itself that's definitive. Thanks, - Ricky ___ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel Hi Ricky, As far as I can see, the DiskImage class can give this--but AFAIK there is no way to convert a LunDisk to a DiskImage. I am curious if the storage domain info should be moved into the Disk class, which is a superclass of both LunDisk and DiskImage, or if perhaps there is a better place for it? Here's a partial class hierarchy that I mapped out when looking into this for a bug I'm working on: BaseDisk '- Disk |- LunDisk '- DiskImageBase '- DiskImage Thanks, Greg ___ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel