Page MenuHomeFreeBSD

New version of jng (2.0)
Needs ReviewPublic

Authored by dteske on Jan 19 2024, 7:05 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 27, 6:17 AM
Unknown Object (File)
Fri, Apr 26, 3:03 AM
Unknown Object (File)
Sat, Apr 20, 8:07 PM
Unknown Object (File)
Sat, Apr 20, 10:26 AM
Unknown Object (File)
Sat, Apr 20, 9:43 AM
Unknown Object (File)
Mar 22 2024, 12:26 AM
Unknown Object (File)
Mar 14 2024, 2:54 AM
Unknown Object (File)
Feb 25 2024, 12:01 PM

Details

Reviewers
julian
Summary

Changes for jng 1.0 -> 2.0 include:

+ Add experimental MSS clamping
+ Add support for ng_bridge(4) NGM_BRIDGE_GET_STATS (getstats)
+ Add JSON formatted ng_bridge(4) statistics (see above) via "jng stats -j <name>"
+ Add error messages
+ Minor refactoring for code readability (read: quietly() function)
+ Rename eiface variables to jiface to clarify as-for jail interface (not ng_eiface(4))
+ Fix missing description for alternate form of "jng show" usage
+ Update "jng show <name>" to accept multiple names (now "jng show <name> …" is allowed)
+ Update "jng shutdown <name>" to accept multiple names (now "jng shutdown <name> …" is allowed)
+ Add "-a" option to "jng stats" (as-in "jng stats -a") to show all ng_bridge(4) stats
+ Update "jng stats <name>" to accept any kind of name (make it easier to use)
+ Add version ident
+ Remove extraneous line in LICENSE section
+ Add -h to usage statements
+ Bump copyright

Test Plan

Drop-in replacement for jng-1.0

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

dteske edited the summary of this revision. (Show Details)
dteske edited the summary of this revision. (Show Details)

Advertise -j option in stats usage statement

dteske edited the summary of this revision. (Show Details)
dteske edited the summary of this revision. (Show Details)
dteske edited the summary of this revision. (Show Details)
dteske retitled this revision from New version of jng to New version of jng (2.0).
dteske edited the test plan for this revision. (Show Details)

Fix variable name in awk -- s/time/tm/

Nice!
I have slightly tested it, and it is backwards compatible... even with the old (unrelated) bug 268397 (this is probably a race somewhere else), that reproduces easily by stopping/starting the jail service 10 times (repo/branch here: https://github.com/jlduran/jng-jib-jails-test/tree/jng2)