-
Notifications
You must be signed in to change notification settings - Fork 259
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pr feedback: constants and uvmconstants to guestpath package
Add new guestpath package that contains all of the guest path constants used in guest and hcsshim Signed-off-by: Maksim An <maksiman@microsoft.com>
- Loading branch information
Showing
27 changed files
with
107 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 10 additions & 5 deletions
15
internal/constants/constants.go → internal/guestpath/paths.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,24 @@ | ||
package constants | ||
package guestpath | ||
|
||
const ( | ||
// LCOWNvidiaMountPath is the path format in LCOW UVM where nvidia tools are mounted | ||
// keep this value in sync with opengcs | ||
LCOWNvidiaMountPath = "/run/nvidia" | ||
|
||
// LCOWRootPrefixInUVM is the path inside UVM where LCOW container's root file system will be mounted | ||
LCOWRootPrefixInUVM = "/run/gcs/c" | ||
|
||
// WCOWRootPrefixInUVM is the path inside UVM where WCOW container's root file system will be mounted | ||
WCOWRootPrefixInUVM = `C:\c` | ||
|
||
// SandboxMountPrefix is mount prefix used in container spec to mark a sandbox-mount | ||
SandboxMountPrefix = "sandbox://" | ||
|
||
// HugePagesMountPrefix is mount prefix used in container spec to mark a huge-pages mount | ||
HugePagesMountPrefix = "hugepages://" | ||
// LCOWMountPathPrefix is the path format in the LCOW UVM where non global mounts, such | ||
// as Plan9 mounts are added | ||
LCOWMountPathPrefix = "/mounts/m%d" | ||
// LCOWGlobalMountPrefix is the path format in the LCOW UVM where global mounts are added | ||
LCOWGlobalMountPrefix = "/run/mounts/m%d" | ||
// WCOWGlobalMountPrefix is the path prefix format in the WCOW UVM where mounts are added | ||
WCOWGlobalMountPrefix = "C:\\mounts\\m%d" | ||
// RootfsPath is part of the container's rootfs path | ||
RootfsPath = "rootfs" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.