Fix: namestore directory regression - restore 'names' subdirectory in path #4535
+71
−1
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.
Description
fix: #4525
This PR addresses a critical regression in the namestore directory creation logic, ensuring that container names are stored in the correct subdirectory structure.
Problem
Starting with v2.0, the namestore directory has been incorrectly created as
<DATAROOT>/<ADDRHASH>/<NAMESPACE>(e.g.,/var/lib/nerdctl/1935db59/default/foo) instead of the intended<DATAROOT>/<ADDRHASH>/names/<NAMESPACE>. This was caused by commit bf89c08, where the "names" subdirectory was inadvertently omitted from the path.Breaking Change Warning
This fix introduces a breaking change because existing containers will no longer be recognized in the corrected path. Affected users must:
Due to the breaking fix, this may not be included in a patch release.