tests: remove mount_id and parent_id from mount-ns test data #7448
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The mount-ns test is useful as it shows a realistic view of the mount
table. The mount IDs are re-numbered and are pretty much just a
sequence. While some work went into making it easy to understand which
mount namespace we are looking at, by checking the mount identifier
value for membership in ranges 0..999, 1000..1999 or 2000..2999 - the
overall value comes at a great cost. Any insertions or removals cause
massive re-numbering to occur below the change. This makes it difficult
to evaluate differences that a patch is introducing without manually
convincing oneself of the "real" diff buried inside the diff printed by
the tooling.
This patch discards the first two columns, namely mount_id and parent_id
in the hope that the resulting output is clearer and more useful.
Signed-off-by: Zygmunt Krynicki me@zygoon.pl