mirror of
https://github.com/containers/podman.git
synced 2026-03-13 08:01:19 +08:00
Fixes from make codespell
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"`
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user