summaryrefslogtreecommitdiff
path: root/pkg/specgen/winpath_linux.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-04-26 08:38:33 -0400
committerGitHub <noreply@github.com>2022-04-26 08:38:33 -0400
commitace6672bf1a9b011a3c414783496668b5f27f3eb (patch)
tree90dc8797ae609979958867f6ac2ede95e2d46e4f /pkg/specgen/winpath_linux.go
parentb3416d3292691788097389b8f41a632c56a926fa (diff)
parentb0d36f63513ee64fa1c1eff4d1045a7633804f12 (diff)
downloadpodman-ace6672bf1a9b011a3c414783496668b5f27f3eb.tar.gz
podman-ace6672bf1a9b011a3c414783496668b5f27f3eb.tar.bz2
podman-ace6672bf1a9b011a3c414783496668b5f27f3eb.zip
Merge pull request #13908 from n1hility/win-mounts
Implement Windows volume/mount support
Diffstat (limited to 'pkg/specgen/winpath_linux.go')
-rw-r--r--pkg/specgen/winpath_linux.go24
1 files changed, 24 insertions, 0 deletions
diff --git a/pkg/specgen/winpath_linux.go b/pkg/specgen/winpath_linux.go
new file mode 100644
index 000000000..f42ac7639
--- /dev/null
+++ b/pkg/specgen/winpath_linux.go
@@ -0,0 +1,24 @@
+package specgen
+
+import (
+ "os"
+
+ "github.com/containers/common/pkg/machine"
+)
+
+func shouldResolveWinPaths() bool {
+ return machine.MachineHostType() == "wsl"
+}
+
+func shouldResolveUnixWinVariant(path string) bool {
+ _, err := os.Stat(path)
+ return err != nil
+}
+
+func resolveRelativeOnWindows(path string) string {
+ return path
+}
+
+func winPathExists(path string) bool {
+ return false
+}