diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-05-01 16:20:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-01 16:20:41 +0200 |
commit | ad68036a88e35dc3c7a19962b8e21867b459f8f1 (patch) | |
tree | b3854bdbf0971e58b85bdd039ea447ef6390d933 /pkg/spec | |
parent | eea77b5ae3e7fb8a60d438a79d3a4b30d35bb67c (diff) | |
parent | 0b6bb6a3d3c3c15b9c6629a6949a616a30b0478a (diff) | |
download | podman-ad68036a88e35dc3c7a19962b8e21867b459f8f1.tar.gz podman-ad68036a88e35dc3c7a19962b8e21867b459f8f1.tar.bz2 podman-ad68036a88e35dc3c7a19962b8e21867b459f8f1.zip |
Merge pull request #3031 from baude/remotewindows
enable podman-remote on windows
Diffstat (limited to 'pkg/spec')
-rw-r--r-- | pkg/spec/config_linux.go | 6 | ||||
-rw-r--r-- | pkg/spec/createconfig.go | 7 |
2 files changed, 6 insertions, 7 deletions
diff --git a/pkg/spec/config_linux.go b/pkg/spec/config_linux.go index a1873086e..eb2acf984 100644 --- a/pkg/spec/config_linux.go +++ b/pkg/spec/config_linux.go @@ -244,3 +244,9 @@ func makeThrottleArray(throttleInput []string, rateType int) ([]spec.LinuxThrott } return ltds, nil } + +func getStatFromPath(path string) (unix.Stat_t, error) { + s := unix.Stat_t{} + err := unix.Stat(path, &s) + return s, err +} diff --git a/pkg/spec/createconfig.go b/pkg/spec/createconfig.go index 9c674d9f1..505d87f09 100644 --- a/pkg/spec/createconfig.go +++ b/pkg/spec/createconfig.go @@ -19,7 +19,6 @@ import ( "github.com/opencontainers/runtime-tools/generate" "github.com/pkg/errors" "github.com/sirupsen/logrus" - "golang.org/x/sys/unix" ) // Type constants @@ -643,9 +642,3 @@ func NatToOCIPortBindings(ports nat.PortMap) ([]ocicni.PortMapping, error) { func (c *CreateConfig) AddPrivilegedDevices(g *generate.Generator) error { return c.addPrivilegedDevices(g) } - -func getStatFromPath(path string) (unix.Stat_t, error) { - s := unix.Stat_t{} - err := unix.Stat(path, &s) - return s, err -} |