Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[release/1.6] Bug fix for mount path handling #6929

Merged
merged 1 commit into from May 18, 2022

Commits on May 11, 2022

  1. Bug fix for mount path handling

    Currently when handling 'container_path' elements in container mounts we simply call
    filepath.Clean on those paths. However, filepath.Clean adds an extra '.' if the path is a
    simple drive letter ('E:' or 'Z:' etc.). These type of paths cause failures (with incorrect
    parameter error) when creating containers via hcsshim. This commit checks for such paths
    and doesn't call filepath.Clean on them.
    It also adds a new check to error out if the destination path is a C drive and moves the
    dst path checks out of the named pipe condition.
    
    Signed-off-by: Amit Barve <ambarve@microsoft.com>
    (cherry picked from commit bfde58e)
    Signed-off-by: Amit Barve <ambarve@microsoft.com>
    ambarve committed May 11, 2022
    Copy the full SHA
    70839a3 View commit details
    Browse the repository at this point in the history