浏览代码

container: make path resolution fns Windows-only

The new daemon.containerFSView type covers all the use-cases on Linux
with a much more intuitive API, but is not portable to Windows.
Discourage people from using the old and busted functions in new Linux
code by excluding them entirely from Linux builds.

Signed-off-by: Cory Snider <csnider@mirantis.com>
Cory Snider 2 年之前
父节点
当前提交
dcd6c1d2e2
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      container/archive_windows.go

+ 1 - 1
container/archive.go → container/archive_windows.go

@@ -18,7 +18,7 @@ func (container *Container) ResolvePath(path string) (resolvedPath, absPath stri
 	if container.BaseFS == "" {
 		return "", "", errors.New("ResolvePath: BaseFS of container " + container.ID + " is unexpectedly empty")
 	}
-	// Check if a drive letter supplied, it must be the system drive. No-op except on Windows
+	// Check if a drive letter supplied, it must be the system drive.
 	path, err = system.CheckSystemDriveAndRemoveDriveLetter(path)
 	if err != nil {
 		return "", "", err