Skip to content
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

Run codespell on code #1714

Merged
merged 1 commit into from
Sep 15, 2023
Merged

Run codespell on code #1714

merged 1 commit into from
Sep 15, 2023

Conversation

rhatdan
Copy link
Member

@rhatdan rhatdan commented Sep 14, 2023

No description provided.

types/options.go Outdated
Comment on lines 223 to 225
// Image Store is the location of image store which is seperated from the
// Image Store is the location of image store which is separated from the
// container store. Usually this is not recommended unless users wants
// seperate store for image and containers.
// separate store for image and containers.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this needs more than just spelling fixes? The first correction should IMO also be "separate", not separated. And the second instance is just repetition, not really helpful. Is there a way to phrase that such that it would explain the why, not the what?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok I took a stab at improving the description of imagestore in all locations.

@rhatdan rhatdan force-pushed the codespell branch 4 times, most recently from be9cb23 to d53c1fd Compare September 14, 2023 12:49
Copy link
Collaborator

@edsantiago edsantiago left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Much better, thank you!


A common use case for this field is for the users who want to split the file-system in different parts i.e disk which stores images vs disk used by the container created by the image.
Common use cases for this field is users who need to split file-systems in different partitions. A partition to store images vs a partition for storing container content created from the image.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mismatched plural/singular; I think it reads better as it was, "A common use case" (not "common use cases")

"filesystem" is one word

Standard usage requires commas before and after i.e. and e.g.. I'm not a 100% stickler about that, but one comma at least should be added. And this is an e.g. (exampla gratia(sp?)), not i.e. (id est, that is). So: "..different locations, e.g. one partition to store images and one to store containers"?

@@ -56,10 +56,9 @@ $ restorecon -R -v /NEWSTORAGEPATH
A common use case for this field is to provide a local storage directory when user home directories are NFS-mounted (podman does not support container storage over NFS).

**imagestore**=""
image storage path (the default is assumed to be the same as `graphroot`).
Path of imagestore different from `graphroot`, by default storage library stores all images in `graphroot` but if `imagestore` is provided it will store newly pulled images in provided `imagestore` but will keep using `graphroot` for everything else. If user is using `overlay` driver then images which were already part of `graphroot` will still be accessible ( Internally storage library will mount `graphroot` as an `additionalImageStore` to allow this behaviour ).
image storage path (the default is assumed to be the same as `graphroot`). Path of imagestore different from `graphroot`. By default images in the storage library are stored int the `graphroot`. If `imagestore` is provided newly pulled images will be stored in the `imagestore` location. All other storage continues to be stored in the `graphroot`. When using `overlay` driver images previously stored in the `graphroot` continue to be accessible ( Internally storage library mounts `graphroot` as an `additionalImageStore` to allow this behaviour ).
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion: add comma: "if imagestore is provided, newly ..."

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

... stored int the...

@@ -56,10 +56,9 @@ $ restorecon -R -v /NEWSTORAGEPATH
A common use case for this field is to provide a local storage directory when user home directories are NFS-mounted (podman does not support container storage over NFS).

**imagestore**=""
image storage path (the default is assumed to be the same as `graphroot`).
Path of imagestore different from `graphroot`, by default storage library stores all images in `graphroot` but if `imagestore` is provided it will store newly pulled images in provided `imagestore` but will keep using `graphroot` for everything else. If user is using `overlay` driver then images which were already part of `graphroot` will still be accessible ( Internally storage library will mount `graphroot` as an `additionalImageStore` to allow this behaviour ).
image storage path (the default is assumed to be the same as `graphroot`). Path of imagestore different from `graphroot`. By default images in the storage library are stored in the `graphroot`. If `imagestore` is provided, newly pulled images will be stored in the `imagestore` location. All other storage continues to be stored in the `graphroot`. When using `overlay` driver images previously stored in the `graphroot` continue to be accessible ( Internally storage library mounts `graphroot` as an `additionalImageStore` to allow this behaviour ).
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I still find this hard to grok. It's missing a couple of commas, and is a little confusing, but it's better than it was, so thank you.

Cleanup description of imagestore.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Copy link
Collaborator

@flouthoc flouthoc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 15, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: flouthoc, 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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@rhatdan rhatdan merged commit 880c951 into containers:main Sep 15, 2023
18 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants