Fixes from make codespell

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
Daniel J Walsh
2021-04-21 05:38:34 -04:00
parent 544c315665
commit 9c8277247d
21 changed files with 27 additions and 27 deletions

View File

@@ -1313,7 +1313,7 @@ func (c *Container) stop(timeout uint) error {
}
// We have to check stopErr *after* we lock again - otherwise, we have a
// change of panicing on a double-unlock. Ref: GH Issue 9615
// change of panicking on a double-unlock. Ref: GH Issue 9615
if stopErr != nil {
return stopErr
}
@@ -1676,7 +1676,7 @@ func (c *Container) chownVolume(volumeName string) error {
// TODO: For now, I've disabled chowning volumes owned by non-Podman
// drivers. This may be safe, but it's really going to be a case-by-case
// thing, I think - safest to leave disabled now and reenable later if
// thing, I think - safest to leave disabled now and re-enable later if
// there is a demand.
if vol.state.NeedsChown && !vol.UsesVolumeDriver() {
vol.state.NeedsChown = false

View File

@@ -5,7 +5,7 @@ import (
"time"
)
// FileInfo describes the attributes of a file or diretory.
// FileInfo describes the attributes of a file or directory.
type FileInfo struct {
Name string `json:"name"`
Size int64 `json:"size"`

View File

@@ -50,7 +50,7 @@ func findImageInRepotags(search imageParts, images []*Image) (*storage.Image, er
// If more then one candidate and the candidates all have same name
// and only one is read/write return it.
// Othewise return error with the list of candidates
// Otherwise return error with the list of candidates
if len(candidates) > 1 {
var (
rwImage *Image

View File

@@ -18,7 +18,7 @@ var (
stopped bool
sigChan chan os.Signal
cancelChan chan bool
// Syncronize accesses to the map
// Synchronize accesses to the map
handlerLock sync.Mutex
// Definitions of all on-shutdown handlers
handlers map[string]func(os.Signal) error