RFC Support discovery log change events
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest0 of 6 patches 0 repliesNew
Patches in v1 No applies recorded yet
None of the 6 patches the cover letter announces are in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH nvme-cli rfc 0/6] Support discovery log change events
Quoted 7 lines · Sagi Grimberg
Quoted 6 lines
Hmm.
Last time I've posted the autoconnect scripts you said you'd rather have them updated to be useful for generic discovery events. So what happened to that?
Quoted 6 lines
I would like to have a single event, but the one difference is that the discovery log page events come on a discovery controller and in the fc case we don't have such a controller (the
NVME_INSTANCEenv).If we can resolve this difference we can unite and have a single udev handler for both...
We shouldn't unite them. They are very different things.? One is an event that says I found a discovery controller go probe it, while the other is a discovery controller saying I have a discovery log entry go connect to it.?? My position is we should have both.
Quoted 33 lines
Quoted 4 lines
As it stands (and as posted here) these scripts are pretty much independent on the remaining series as they react to the existent FC NVMe uevents.
Well at least the nvmf-connect at .service is shared...
Quoted 8 lines
And the one thing which I patently dislike about those scripts is this utterly weird interface.
Problem here is that abstract systemd services (ie those ending with an '@' sign) can pass exactly _one_ argument, namely that one following the '@' sign.
But for nvme we need to pass in several arguments, one for each command-line parameter.Quoted 4 lines
The way it's solved nowadays is to insert a 'tab' character (\t) between each argument, use the combined string as parameter to the systemd service, and call 'echo' to split the parameters again. Shudder.
Can't say I like it either...
Quoted 11 lines
What I really want to do here is to add a '--dry-run' option to nvme-cli, which then would instruct nvme-cli to _not_ write the final string to the ioctl interface but rather to stdout.
This string will not contain any spaces, and have each argument (minus any leading dashes) concatenated by commas.
So it should be possible to use this string as argument for the systemd service.
Then we only need to complementary call --argstr to accept this string for nvme-cli, re-parse it into the internal structure, and continue with the operation.
Quoted 4 lines
Quoted 2 lines
I do have some patches, but still need to polish them off (and possibly test them :-) before sending.
Not sure if that is any better, but lets see patches...
any updates on these ?
-- james