Page MenuHomeFreeBSD

New version of jng (2.0)
ClosedPublic

Authored by dteske on Jan 19 2024, 7:05 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 21, 11:23 PM
Unknown Object (File)
Tue, Apr 21, 3:20 PM
Unknown Object (File)
Thu, Apr 16, 12:59 AM
Unknown Object (File)
Wed, Apr 15, 11:02 AM
Unknown Object (File)
Sun, Apr 12, 6:49 PM
Unknown Object (File)
Sun, Apr 12, 1:02 AM
Unknown Object (File)
Sun, Apr 12, 12:00 AM
Unknown Object (File)
Sat, Apr 11, 4:15 PM

Details

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)

Moving forward with jlduran's review

This revision is now accepted and ready to land.Sat, Apr 4, 7:29 PM
This revision was automatically updated to reflect the committed changes.