bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

hard-links provoke EIO and EBADF errors in rm


From: Jim Meyering
Subject: hard-links provoke EIO and EBADF errors in rm
Date: Fri, 29 Sep 2006 19:29:51 +0200

Bruno Haible <address@hidden> wrote:
>> You mean you've found *another* problem with GNU rm?
>> Is so, please provide details.

Hi Bruno,

This is a bug, but it's not in GNU rm.
I'm not even going to try to work around it before coreutils-6.3.
Given all of the O/S bugs exposed by coreutils' test suite, users
of Darwin 7.9.0 should be rushing to upgrade, if at all possible.

> The second bug is harder to reproduce.
> I have a big tar file with hard links in it.
...
> I unpack it on a HFS+ volume:
> $ tar xvf cross-hppa.tar
>
> Then I unmount the volume on the MacOS X machine and mount it again.
> (Alternatively, it appears that waiting a few hours has the same effect.)
>
> Then I try to remove the tree from a Linux machine, via a NFS mount:
>
> $ uname -a
> Linux linuix 2.4.21-99-default #1 Wed Sep 24 13:30:51 UTC 2003 i686 GNU/Linux
> $ rm -r cross
> rm: cannot remove directory `cross/hppa-linux/bin': Directory not empty
> ...
> [After 15 more attempts, to empty the directories that can be emptied:]
> $ rm -r cross
> rm: cannot remove `cross/hppa-linux-tools/bin/hppa-linux-ar': Input/output 
> error

Yes, that's a lot harder to reproduce.
Thanks for all of the details.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]