-
Notifications
You must be signed in to change notification settings - Fork 822
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
linkat fails with EACCES when the target inode has deleted original hardlink #3972
Comments
Cannot reproduce on either drvfs or lxfs. Sequence speaks for itself though, so if it is failing you are probably onto something. Best guess absent some me2s is you are missing some important CLI steps leading up to the |
I confirm this does not affect
The above repro was done in my home directory. |
[....redacted....] Of course you do.
You can tee that up if you like. But before you take the trouble, variate some external variables -- I can't guess which. Your Below is my
|
Quick follow-up. Me (still 18875):
That lxfs vs wslfs is different enough for me. |
I can reproduce this with build 18875's |
I confirm. Tried on my other computer computer with the same distro except with |
I can also reproduce this with
|
Seen to break zypper on openSUSE Leap 15.1 on WSL: https://bugzilla.opensuse.org/show_bug.cgi?id=1159195 which also used hardlinks |
Under which circumstances resp since when is wslfs used as default file system? |
I'll ping the devs internally. The S/N ratio is pretty low so ones like this one sometimes get buried. As a data point, was there any change in the package manager with respect to using (or not using) hardlinks as part of the process (in the last 18 months or so)? On best evidence the lxfs/wslfs difference points fairly conclusively to a regress; but it will be helpful to know if there is more than one variable in play. |
The affected code in libzypp does not look like it has changed the last two years: |
short of a quick fix is there a workaround? Is there a way to downgrade to lxfs for example? |
Not that I know of. The One could hypothetically work-around in the source, acknowledging that's icky. Or
Which is to say, in the OP analogy, this works:
Not advocating actually spinning a |
Too much for documenting a quick workaround. I was hoping for some simple command to enter on Windows side to downgrade to lxfs. This is a real bug in wslfs after all that also affects other legitimate work loads. #4066 for example also looks like it. |
#4066 is more likely #1529; can't tell because there's no repro or strace log over there. Bitbake has surfaced before #2665. Analogous everyone's favorite npm #14 except bitbake isn't as popular. This one was novel because there's no handle open; but educated speculation would be a handle is open on the win32 side of the 9p service. 9p was release in 18342, circa February 2019; uncoincidentally included a couple months later in 18342 per the OP. |
Can someone with a working WSL 1 try running the OP repro from an elevated ("run as administrator") cmd prompt, then [ed] nvm, I managed to get a WSL 1 live using |
@therealkenc Is this fix part of 2004 or do we need to wait for the next release? |
Right, Craig's fixinbound was Feb 12th which means there is no way this made 2004. |
On WSL, one user reported that they could not create an archive due to: tarsnap: link(/root/tarsnap-cache/directory.tmp, /root/tarsnap-cache/directory): Permission denied I believe [1] that this is due to a known WSL issue [2] which was marked as fixed 2020-06-02, but that fix is currently only available for "Insider Preview" builds and not public builds. Also, I'm not certain how often WSL users update their installed systems. [1] http://mail.tarsnap.com/tarsnap-users/msg01601.html [2] microsoft/WSL#3972
This one went fixinbound Feb 12th; let's call it amorphous "Stability improvements for virtio-9p (drvfs)" in 19640. /fixed 19640 |
This bug or feature request originally submitted has been addressed in whole or in part. Related or ongoing bug or feature gaps should be opened as a new issue submission if one does not already exist. Thank you! |
Is said 19640 for WSL2 only? Have you just discontinued WSL? 😲 |
I am not sure how relevant it is but I am on 19041 and the problem does not occur after upgrading to WSL 2. |
On WSL, one user reported that they could not create an archive due to: tarsnap: link(/root/tarsnap-cache/directory.tmp, /root/tarsnap-cache/directory): Permission denied I believe [1] that this is due to a known WSL issue [2] which was marked as fixed 2020-06-02, but that fix is currently only available for "Insider Preview" builds and not public builds. Also, I'm not certain how often WSL users update their installed systems. [1] http://mail.tarsnap.com/tarsnap-users/msg01601.html [2] microsoft/WSL#3972
On WSL, one user reported that they could not create an archive due to: tarsnap: link(/root/tarsnap-cache/directory.tmp, /root/tarsnap-cache/directory): Permission denied I believe [1] that this is due to a known WSL issue [2] which was marked as fixed 2020-06-02, but that fix is currently only available for "Insider Preview" builds and not public builds. Also, I'm not certain how often WSL users update their installed systems. [1] http://mail.tarsnap.com/tarsnap-users/msg01601.html [2] microsoft/WSL#3972
On WSL, one user reported that they could not create an archive due to: tarsnap: link(/root/tarsnap-cache/directory.tmp, /root/tarsnap-cache/directory): Permission denied I believe [1] that this is due to a known WSL issue [2] which was marked as fixed 2020-06-02, but that fix is currently only available for "Insider Preview" builds and not public builds. Also, I'm not certain how often WSL users update their installed systems. [1] http://mail.tarsnap.com/tarsnap-users/msg01601.html [2] microsoft/WSL#3972
On WSL, one user reported that they could not create an archive due to: tarsnap: link(/root/tarsnap-cache/directory.tmp, /root/tarsnap-cache/directory): Permission denied I believe [1] that this is due to a known WSL issue [2] which was marked as fixed 2020-06-02, but that fix is currently only available for "Insider Preview" builds and not public builds. Also, I'm not certain how often WSL users update their installed systems. [1] http://mail.tarsnap.com/tarsnap-users/msg01601.html [2] microsoft/WSL#3972
Please fill out the below information:
Your Windows build number: Microsoft Windows [Version 10.0.18362.53]
What you're doing and what's happening: (Copy&paste the full set of specific command-line steps necessary to reproduce the behavior, and their output. Include screen shots if that helps demonstrate the problem.)
What's wrong / what should be happening instead:
The
ln
command shouldn't fail. A hardlink namedham
pointing to the same inode should be created.Strace of the failing command, if applicable: (If
some_command
is failing, then runstrace -o some_command.strace -f some_command some_args
, and link the contents ofsome_command.strace
in a gist here).https://gist.github.com/trchen1033/9f004be23919f8f7a2ffff4b1da9bf7b
The text was updated successfully, but these errors were encountered: