Thanks for the short repro script.
This prevents debian packaging tools from working; seems like it'd be
good to fix it in aufs rather than adding a workaround into dpkg and
friends.

I believe this is bug #1: http://sourceforge.net/p/aufs/bugs/1/
- Dan

On Tue, Jan 27, 2015 at 3:47 PM, Michael Johnson - MJ <m...@revmj.com> wrote:
> I see very similar behavior (and always have with AUFS) and it is easily
> reproducible.  Here is how to reproduce 100% of the time:
>
> $ cd /aufsdir;
> $ mkdir -p dir1/dir2;
> $ rm -rf dir1
> $ ls
> ls: cannot open directory .: Stale file handle
>
> To mke the error go away:
>
> $ cd .
>
> And now an ls works flawlessly.
>
> Basically, any time you have a directory with one or more files or
> directories inside of it, and then you recursively remove it while the
> working directory is the parent, subsequent attempts to access files inside
> of the parent will fail with the 'Stale file handle' error.
>
> For the most part this does not impact me becuase most things are not
> working of files/directories that are a immediate descent of the current
> working directory.  But it would be nice if this problem did not occur.
>
> Hope this helps to at least understand the problem better and possible
> provide you with a workaround.
>
> On Tue, Jan 27, 2015 at 10:50 AM, Dan Kegel <d...@kegel.com> wrote:
>>
>> I've been using aufs on top of ext4 reliably for some time.
>>
>> Recently I tried it on top of btrfs (stock Ubuntu 14.04), and my
>> builds are failing in rm -rf with:
>>
>> /bin/rm: cannot remove
>> `/tmp/temp-lintian-lab-h2hbg82XOW/pool/o/oobleck.../unpacked':
>> Directory not empty
>> internal error: failed to remove unpacked directory of oobleck
>> ...
>> /bin/rm: fts_read failed: Stale NFS file handle
>>
>> Has anybody else seen this?
>>
>> (A superficially similar problem was mentioned five years ago:
>> http://comments.gmane.org/gmane.linux.file-systems.aufs.user/2437
>> Likewise, there are superficially similar posts from docker users,
>> but they may be from user error.)
>>
>> I see that Ubuntu 14.04's using kernel 3.13.mumble, and aufs no longer
>> supports 3.13 per
>> http://aufs.sourceforge.net/
>> Not sure how easy it'd be for me to run vanilla kernels on this box.
>> My best move
>> is probably to drop back to ext4 for now.
>>
>>
>> ------------------------------------------------------------------------------
>> Dive into the World of Parallel Programming. The Go Parallel Website,
>> sponsored by Intel and developed in partnership with Slashdot Media, is
>> your
>> hub for all things parallel software development, from weekly thought
>> leadership blogs to news, videos, case studies, tutorials and more. Take a
>> look and join the conversation now. http://goparallel.sourceforge.net/
>
>
>
>
> --
> Michael Johnson - MJ

------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/

Reply via email to