-
Notifications
You must be signed in to change notification settings - Fork 249
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
overlay: Extend documentation comment for layout #1933
base: main
Are you sure you want to change the base?
Conversation
4ac5364
to
eff221a
Compare
BTW, feel free to (please do) just force push updates to this PR to add/fix things. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some quick comments because I glanced at the PR list…
One vague thought: that there are two very different audiences who might read this: support investigators who need to understand some specific broken filesystem state, and developers who need to understand all possible combinations and rules and invariants.
## DESCRIPTION | ||
The *containers/storage* library manages the following object types: | ||
|
||
- layer: A filesystem tree, along with metadata |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
… organized in, and optimized for, a tree of parent/child links, where a single “layer” may either serve as a complete filesystem tree, or a difference from the parent.
- image: A reference to a layer, along with metadata | ||
- container: A layer whose parent is an image |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These feel a bit too reductionist to me.
The important thing about images is that, unlike, layers, users frequently with deal with them directly; that they have human-usable names; and that they are nevertheless deduplicated.
The important thing about containers is… ? That the top layer is read-write? That a lot of the metadata is actually not in c/storage but in Podman’s / CRI-O’s data? Also, technically the parent of the container’s layer is still a layer.
- image: A reference to a layer, along with metadata | ||
- container: A layer whose parent is an image | ||
|
||
## Layer storage |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Discusssion of graph drivers?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would make sense to add in theory but I personally don't care much since I think we're in a place where there is only the overlay
driver that matters, right?
Let's expand the existing doc comment, as it's really useful to understand the implementation in order to debug or improve things. We also clearly say first that these are implementation details. Signed-off-by: Colin Walters <[email protected]>
eff221a
to
93e5917
Compare
containers-storage-architecture.md
@giuseppe PTAL |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cgwalters, rhatdan The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
LGTM |
This one isn't urgent, I think we can just leave it as draft and I may circle back to it later. No need for others to dive in for review now, we have more important things. |
Let's expand the existing doc comment, as it's really
useful to understand the implementation in order to
debug or improve things.
We also clearly say first that these are implementation details.
Signed-off-by: Colin Walters [email protected]