-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Windows mount: unable to rename file if destination exists: Unknown error 526 #3046
Comments
Found the primary issue, but then stumbled on a secondary problem. Primary issue: in the However, I happened to stumble across a separate – technically unrelated – bug that is much (much!) scarier to ponder. For whatever reason, the inode of a file or directory reported to *nix is the size of the file in bytes... tldr; To directly resolve my original bug report, replacing all calls to |
That last sentence frightens me. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
If anyone is interested in chasing this down, see |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
More than 6 years later and the issue still persists. I encountered this issue when trying to overwrite a similar file with |
BUG REPORT
Environment:
What happened:
Mounts created with
minikube mount
on a Windows host do not supportmv
(file renames) from a *nix guest when the destination file already exists - results in error and no rename taking place.What you expected to happen:
Some kind of workaround on Windows hosts to allow the renaming/clobbering onto an existing file from *nix guests – even if it's just a (non-atomic) deletion of the existing file before doing the rename.
How to reproduce it:
Run the following from one Windows cmd or PowerShell on Windows. Note that 9p version
9p2000.L
vs. default9p2000.u
makes no difference. The--ip
passed due to separate bug #2442.Keep that terminal open to a) maintain the mount, and b) observe error message after the next step.
From a second Windows cmd or PowerShell:
The output:
mv: cannot move 'hello' to 'world': Unknown error 526
Switch back to the first Windows cmd/PowerShell where the mount process is running. Its output:
Output of
minikube logs
(if applicable):N/A
Anything else do we need to know:
Plea: regardless of an official stance/timeline on fixing this issue, if someone knows where exactly this problem originates, can you please share with me? When one runsmv hello world
from a *nix guest, where can I find the code responsible for attempting a native Windows rename even though the OS does not permit renaming on top of an existing file? Is this logic part of minikube itself, or inherited via the use of a library that provides the 9p mounts?I'm up against a tight deadline to demonstrate viability of k8s development, and am stuck with Windows for local dev (😢).
If I have to hack in a file-deletion-before-rename into an external library dependency and recompile minikube manually, I'm up for that.Aside: I already tried VirtualBox shared folders, which failed for another reason (tldr: vboxsf mount from Windows to minikube, with hostPath mount from minikube to k8s pod's docker container - when Windows host writes to a file, the nested mount sees cached/corrupted file contents upon read).Thanks!
The text was updated successfully, but these errors were encountered: