Project

General

Profile

Feature #33630

Deterministic devd message format

Added by Vladimir Vinogradenko over 3 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
No priority
Assignee:
Alexander Motin
Category:
OS
Target version:
Estimated time:
Severity:
Low Medium
Reason for Closing:
Reason for Blocked:
Needs QA:
Yes
Needs Doc:
Yes
Needs Merging:
Yes
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:

Description

Right now we can't parse devd messages reliably because their format is too simple:

title=Example text=Let A=1, B=2

Is this
{
    "title": "Example",
    "text": "Let A=1, B=2" 
}

or
{
    "title": "Example",
    "text": "Let",
    "A": "1,",
    "B": "2" 
}

We might consider using XML or JSON for these messages or maybe split key-value pairs with \0 like /proc/<pid>/cmdline in Linux.


Related issues

Related to FreeNAS - Bug #35263: Parse devd messages that use "=" as a separatorDone

History

#1 Updated by Alexander Motin over 3 years ago

  • Status changed from Unscreened to Screened

This is a long-standing problem of FreeBSD kernel devctl interface. IIRC Jakub Klama already implemented it once for use in Corral, but as most of his beginnings it was not ever finished or upstreamed due to being very invasive.

#2 Updated by Bonnie Follweiler over 3 years ago

  • Related to Bug #35263: Parse devd messages that use "=" as a separator added

#3 Avatar?id=14398&size=24x24 Updated by Kris Moore over 2 years ago

  • Status changed from Screened to Closed

Also available in: Atom PDF