]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r362544:
authorRyan Moeller <freqlabs@FreeBSD.org>
Fri, 26 Jun 2020 00:58:59 +0000 (00:58 +0000)
committerRyan Moeller <freqlabs@FreeBSD.org>
Fri, 26 Jun 2020 00:58:59 +0000 (00:58 +0000)
commit1bbae50f8e88a1e673dd2238fe99785ab57742cb
tree016412dfdbffb84467db965c575279f2336b77e9
parent4f349de4c6670f3cce53e83196d85d0f6dd261f7
MFC r362544:

libdevdctl: Force full match of "timestamp" field name

OpenZFS generates events with a "zio_timestamp" field, which gets mistaken for
"timestamp" by libdevdctl due to imprecise string matching.  Then later it is
assumed a "timestamp" field exists when it doesn't and an exception is thrown.

Add a space to the search string so we match exactly "timestamp" rather than
anything with that as a suffix.

Approved by:    mav (mentor)
Sponsored by:   iXsystems, Inc.
lib/libdevdctl/event.cc