bug-tar
[Top][All Lists]
Advanced

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

Re: [Bug-tar] an exactly duplicated file was created by tar


From: Jim Meyering
Subject: Re: [Bug-tar] an exactly duplicated file was created by tar
Date: Tue, 30 Aug 2011 09:52:22 +0200

Paul Eggert wrote:
> On 08/18/2011 10:29 AM, Oliver Kullmann wrote:
>> ls -ali 1025185*
>> 7551518 -rw-r--r-- 1 csoliver users 164 2011-08-16 21:23 1025185
>> 7551518 -rw-r--r-- 1 csoliver users 164 2011-08-16 21:23 1025185
>
> This appears to be a bug in the file system, not in 'tar' itself.
> A directory cannot contain two entries with the same name.
> GNU Tar (or any other application) has no way to create such
> a situation.
>
> My guess is that "tar -xzf ..." issued system calls to create
> one file, but the underlying file system or kernel got confused
> and created duplicate directory entries.
>
> If the bug is reproducible, you can check my theory by running
> "strace -o tr tar -xzf ..." and inspecting the file "tr" to
> look for system calls mentioning "1025185".

This may be due to an NFS problem.

Here's a case where readdir would return the same name,
yet a new pointer, each time, forever:

    NFS readdir never returns NULL when processing directories with very many\
      entries (i.e., >300K)
    http://bugzilla.redhat.com/719749



reply via email to

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