Re: [PATCH nft] datatype: accept a numeric cgroupsv2 id on input

Avinash Duduskar <[email protected]>
Newsgroups gmane.comp.security.firewalls.netfilter.devel
Message-ID <[email protected]>
On Wed, Jul 29, 2026 at 11:21:22AM +0200, Phil Sutter wrote:
> So maybe only do it if you don't break a leg over it: Use jq or awk to
> eliminate the metainfo object and write a simple test which asserts its
> presence in output.

Two shapes work and the second is much smaller, so I'd rather you pick
before I post.

1. Filter in json-pretty.sh and regenerate the dumps. 433 files, 260K.

2. Same filter, plus run the stored dump through json_pretty in
   test-wrapper.sh before the diff. 2 files, 8 lines, no regeneration.
   The 430 dumps keep a metainfo object nothing reads until they are next
   regenerated.

Both survive a json_schema_version bump. I checked by setting a stored
dump to schema 2: passes either way, fails without the change. Suite is
green as root on both, and either way there is a new
tests/shell/testcases/json/metainfo asserting nft still emits it.

Which do you prefer?

Thanks,
Avinash
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.