stratisd icon indicating copy to clipboard operation
stratisd copied to clipboard

Might want to have a third alternative that compiles in neither IPC mechanism

Open mulkieran opened this issue 3 years ago • 2 comments

Currnently, there is no way to compile in neither IPC mechanism. It is likely to be desirable to do this, though, as we make use of the stratisd engine source code to support various applications or tools of which the most obvious to me is stratis-dumpmetadata. At present we compile this application with the other IPC mechanism (i.e., not D-Bus) and that reduces the size of the debug executable by (160 - 116) / 160 /approx 40 / 160 = 1/4.

mulkieran avatar Sep 08 '22 19:09 mulkieran

This seems reasonable to me! Do you think this would be a good issue for @bmr-cymru?

jbaublitz avatar Sep 15 '22 16:09 jbaublitz

Let's tentatively do that. It is in no way urgent yet...

mulkieran avatar Sep 15 '22 19:09 mulkieran

This turns out to be more complicated than was originally expected because the IPC mechanism picks up udev events and transmits them to the engine so that the engine can react to them and notify the IPC mechanism of any changes made so that the IPCmechanism, if it is D-Bus can update D-Bus properties and so forth.

So, to run w/out any IPC mechanism currently would prevent the engine's handling of udev events.

A solution to this is to add a third, dummy IPC mechanism, that passes the udev events along to the engine and otherwise does nothing.

mulkieran avatar Jan 05 '23 15:01 mulkieran