:: Re: [DNG] vdev status update in dae…
Top Page
Delete this message
Reply to this message
Author: aitor
Date:  
To: dng
Subject: Re: [DNG] vdev status update in daedalus
Hi again

On 19/7/25 12:48, aitor wrote:
> I'll let you know whether this new take goes somewhere... Thanks,
> Didier and Rainer!


I think that I've found a solution without any extra daemonlet.

It still doesn't work because the buffer that the child sends to the parent is truncated with end of lines [*],
and the parent is receives only the first line:

add@/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1

But it promises to work with some minor changes, and I hope to have it working sooner rather than later.

Cheers,

Aitor.

[*] Better said, the child invokes a function that waits for netlink events, and I'm passing a char* as argument.
Hence, the child receives only the first line of the buffer. I'll pass a `struct sglib_cstr_vector*` as argument
in order to send its items one by one through the pipe to the parent.