Hi,
the dependency of storaged on UDisks is itching me a bit. It should work very well with it, but I think it should also work without it, I'd say.
We are not far away from that goal, actually. Here is what I have in mind...
- Add "Device" property to LogicalVolume. Then clients can work with logical volumes without UDisks.
- Add PhysicalVolume objects, with "Device" etc properties and "Remove" etc methods. Make PhysicalVolumeBlock point to it instead of the VolumeGroup.
- Change VolumeGroupCreate and AddDevice methods to take /dev/foo devices instead of UDisks object paths.
- Add VolumeGroupCreateFromUDisksPath etc.
- Add UdisksBlock properties to LogicalVolume and PhysicalVolume that point to the UDisks objects.
- Have our own Job interface.
- Just watch whether UDisks is running, but don't start it.
What do you think?
Marius Vollmer marius.vollmer@redhat.com writes:
We are not far away from that goal, actually. Here is what I have in mind...
And of course, only use UDisks object paths for the overlay objects, not for the LVM2 stuff.
On 01/28/2014 09:13 AM, Marius Vollmer wrote:
Hi,
the dependency of storaged on UDisks is itching me a bit. It should work very well with it, but I think it should also work without it, I'd say.
We are not far away from that goal, actually. Here is what I have in mind...
Add "Device" property to LogicalVolume. Then clients can work with logical volumes without UDisks.
Add PhysicalVolume objects, with "Device" etc properties and "Remove" etc methods. Make PhysicalVolumeBlock point to it instead of the VolumeGroup.
Change VolumeGroupCreate and AddDevice methods to take /dev/foo devices instead of UDisks object paths.
Add VolumeGroupCreateFromUDisksPath etc.
Add UdisksBlock properties to LogicalVolume and PhysicalVolume that point to the UDisks objects.
Have our own Job interface.
Just watch whether UDisks is running, but don't start it.
What do you think?
Just a question, will it still be possible to _easily_ match UDdisks object with storaged objects? Now they have the same object path, will it stay the same? I find it pretty convenient from application point of view.
Jan
Jan Safranek jsafrane@redhat.com writes:
Just a question, will it still be possible to _easily_ match UDdisks object with storaged objects? Now they have the same object path, will it stay the same?
Yes, that would stay the same. Storaged would still export the LogicalVolumeBlock and PhysicalVolumeBlock interfaces on the UDisks2 object paths.
In addition, there would also be a new property on LogicalVolume and PhysicalVolume that points directly to the UDisks2 objects.
On 28.01.2014 18:25, Marius Vollmer wrote:
Jan Safranek jsafrane@redhat.com writes:
Just a question, will it still be possible to _easily_ match UDdisks object with storaged objects? Now they have the same object path, will it stay the same?
Yes, that would stay the same. Storaged would still export the LogicalVolumeBlock and PhysicalVolumeBlock interfaces on the UDisks2 object paths.
In addition, there would also be a new property on LogicalVolume and PhysicalVolume that points directly to the UDisks2 objects.
In general I agree with the approach you outlined.
That said, this worries me: The object paths that storaged exposes will be affected by whether udisksd just happens to be running or not. This is probably going to be surprising to some callers, no?
Stef
cockpit-devel@lists.fedorahosted.org