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

deduplicated files on ReFS are not readable inside Windows containers #548

Open
doctorpangloss opened this issue Nov 15, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@doctorpangloss
Copy link

Please fill out all the sections below for bug issues, otherwise it'll be closed as it won't be actionable for us to address.

Describe the bug
deduplicated files on ReFS are not readable inside Windows containers

To Reproduce

  1. create a refs volume
  2. deduplicate a file on it
  3. mount the directory containing the deduplicated reparse point / symbolic link file into a docker engine container
  4. try to read the file from inside the container
  5. observe it fails, for example:

(this is a deduplicated file)

PS C:\workspace> Get-Content -Path "Assets/3rd Party/Photon/PhotonChat/Code/ChatClient.cs"
Get-Content : The file or directory is corrupted and unreadable.
At line:1 char:1
+ Get-Content -Path "Assets/3rd Party/Photon/PhotonChat/Code/ChatClient ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ReadError: (C:\workspace\As...e\ChatClient.cs:String) [Get-Content], IOException
    + FullyQualifiedErrorId : GetContentReaderIOError,Microsoft.PowerShell.Commands.GetContentCommand

Expected behavior
deduplicated files should be supported

Configuration:

  • Edition: Windows Server 2022
  • Base Image being used: dotnetfx 6
  • Container engine: docker
  • Container Engine version: 27.0.3
@doctorpangloss doctorpangloss added bug Something isn't working triage New and needs attention labels Nov 15, 2024
Copy link

Thank you for creating an Issue. Please note that GitHub is not an official channel for Microsoft support requests. To create an official support request, please open a ticket here. Microsoft and the GitHub Community strive to provide a best effort in answering questions and supporting Issues on GitHub.

@ntrappe-msft
Copy link
Contributor

Hi, thanks for reaching out. We're discussing deduplication support and expected behavior with another team. In the meantime, can you explain more about what your scenario is and why you're trying to use deduplicated files in Windows Containers?

@ntrappe-msft ntrappe-msft removed the triage New and needs attention label Nov 25, 2024
@doctorpangloss
Copy link
Author

doctorpangloss commented Nov 25, 2024

Hi, thanks for reaching out. We're discussing deduplication support and expected behavior with another team. In the meantime, can you explain more about what your scenario is and why you're trying to use deduplicated files in Windows Containers?

I am mounting volumes from a "Dev Drive" with deduplication enabled, such as a git repository, and I would expect an application inside the container to be able to read the files in the repository.

I am mounting large binaries like images to a container which are deduplicated.

I am mounting a build cache for gradle, dotnet, etc.

Copy link
Contributor

This issue has been open for 30 days with no updates.
no assignees, please provide an update or close this issue.

1 similar comment
Copy link
Contributor

This issue has been open for 30 days with no updates.
no assignees, please provide an update or close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants