aboutsummaryrefslogtreecommitdiff
path: root/libpod/util_linux.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-09-12 16:52:08 +0200
committerGitHub <noreply@github.com>2022-09-12 16:52:08 +0200
commit5abc08df252037e2984a2b532f17ba78fdd876d4 (patch)
tree6d370a390a712c27f3e6c34c5e9646c29f1184a6 /libpod/util_linux.go
parent3b9e31c9bb0c36f30ed524ecef7accc1e1e76966 (diff)
parent2c63b8439bbdc09203ea394ad2cf9352830861f0 (diff)
downloadpodman-5abc08df252037e2984a2b532f17ba78fdd876d4.tar.gz
podman-5abc08df252037e2984a2b532f17ba78fdd876d4.tar.bz2
podman-5abc08df252037e2984a2b532f17ba78fdd876d4.zip
Merge pull request #15511 from rhatdan/codespell
Fix stutters
Diffstat (limited to 'libpod/util_linux.go')
-rw-r--r--libpod/util_linux.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/libpod/util_linux.go b/libpod/util_linux.go
index 7c79e6ce4..efc11710f 100644
--- a/libpod/util_linux.go
+++ b/libpod/util_linux.go
@@ -29,7 +29,7 @@ func systemdSliceFromPath(parent, name string, resources *spec.LinuxResources) (
logrus.Debugf("Created cgroup path %s for parent %s and name %s", cgroupPath, parent, name)
if err := makeSystemdCgroup(cgroupPath, resources); err != nil {
- return "", fmt.Errorf("error creating cgroup %s: %w", cgroupPath, err)
+ return "", fmt.Errorf("creating cgroup %s: %w", cgroupPath, err)
}
logrus.Debugf("Created cgroup %s", cgroupPath)
@@ -112,17 +112,17 @@ var lvpReleaseLabel = label.ReleaseLabel
func LabelVolumePath(path string) error {
_, mountLabel, err := lvpInitLabels([]string{})
if err != nil {
- return fmt.Errorf("error getting default mountlabels: %w", err)
+ return fmt.Errorf("getting default mountlabels: %w", err)
}
if err := lvpReleaseLabel(mountLabel); err != nil {
- return fmt.Errorf("error releasing label %q: %w", mountLabel, err)
+ return fmt.Errorf("releasing label %q: %w", mountLabel, err)
}
if err := lvpRelabel(path, mountLabel, true); err != nil {
if err == syscall.ENOTSUP {
logrus.Debugf("Labeling not supported on %q", path)
} else {
- return fmt.Errorf("error setting selinux label for %s to %q as shared: %w", path, mountLabel, err)
+ return fmt.Errorf("setting selinux label for %s to %q as shared: %w", path, mountLabel, err)
}
}
return nil