-
Notifications
You must be signed in to change notification settings - Fork 67
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
Some file operations fail in mounted folders of Hyper-v containers #338
Comments
Hey @YO4 , thank you for sharing this. I've opened an internal issue (#43876473) to look into this. |
Hi! @YO4 |
I found this problem with windows 10 professional and retested with windows server.
I have also confirmed that deletion and renaming succeeds when the --isolation=process option is used. May be I should not have made this a separate issue, I am reporting the results of a more extensive test as #341. |
This issue has been open for 30 days with no updates. |
1 similar comment
This issue has been open for 30 days with no updates. |
Still working on this, thanks for your patience. We were able to repro this and I do see the issue you encountered with msys2 not working for renaming and deleting files. |
This issue has been open for 30 days with no updates. |
1 similar comment
This issue has been open for 30 days with no updates. |
This issue has become stale, closing due to lack of activity. |
Describe the bug
When running in hyperv isolated windows container, delete/rename operations using posix semantics fail
with STATUS_INVALID_PARAMETER (0xC000000D) on the (bind | volume) mounted directory.
delete operation is NtSetInformationFile with FileDispositionInformationEx that has FILE_DISPOSITION_POSIX_SEMANTICS flag.
rename operation is NtSetInformationFile with FileRenameInformationEx that has FILE_RENAME_POSIX_SEMANTICS flag.
This failure occurs only mounted folder in hyperv container
but it's not be able to determine this in advance so you only know when it fails.
To Reproduce
Prepare windows container image that is msys2 installed.
In the container. use msys2's rm.exe / mv.exe
Expected behavior
foo
is deleted.bar
is renamed tobaz
.so
ls
displays onlybaz
.Configuration:
The container base image seems to be applicable to any windows version that supports posix semantics delete/rename.
Container hosts are confirmed with Windows 10 Professional / Windows Server 2022.
for example
Additional context
You can see full test result in https://ci.appveyor.com/project/YO4/test-msys2-in-container/builds/46532757
For more details, see https://ci.appveyor.com/project/YO4/test-msys2-in-container/builds/46532757/job/qinojh64uo6el78s
and download trace log in artifacts.
Workaround patch for msys2 is here msys2/msys2-runtime#141
But it is desirable to eliminate the need for workaround.
Otherwise, I would like to know if it is possible to determine that posix semantics delete/rename cannot be used before failure.
The text was updated successfully, but these errors were encountered: