Michael Johnson - MJ:
> $ cd /aufsdir;
> $ mkdir -p dir1/dir2;
> $ rm -rf dir1
> $ ls
> ls: cannot open directory .: Stale file handle

At least, these steps succeeded on my test machine.

$ mkdir -p dir1/dir2
$ rm -ir dir1
rm: descend into directory `dir1'? y
rm: remove directory `dir1/dir2'? y
aufs au_new_inode:423:rm[4413]: Warning: Un-notified UDBA or repeatedly renamed 
dir, b0, btrfs, dir1, hi274, i11.
rm: remove directory `dir1'? y
$ ls
b_dst     empty          f_src          mv501_a/      p_src|   sleep*
        :::
        (shows everything)

- latest aufs3.14
- u = rw + ro
/dev/ram1 /run/shm/ro ext2 ro,relatime,errors=continue,user_xattr,acl 0 0
/dev/ram0 /run/shm/rw btrfs rw,relatime,space_cache 0 0
none /run/shm/u aufs rw,relatime,si=a8fd9d47e41c7918 0 0

An interesting thing is, a warning about UDBA was produced. Which means
that by removing dir2, the something about dir1 was changed unexpectedly
and aufs detects it (and produced a warning). But I am not sure this is
related to your problem.

Anyway it will be a good help for me to investigate the problem if you
post these info.
----------------------------------------
- /proc/mounts (instead of the output of mount(8))
- /sys/module/aufs/*
- /sys/fs/aufs/* (if you have them)
- /debug/aufs/* (if you have them)
- linux kernel version
  if your kernel is not plain, for example modified by distributor,
  the url where i can download its source is necessary too.
- aufs version which was printed at loading the module or booting the
  system, instead of the date you downloaded.
- configuration (define/undefine CONFIG_AUFS_xxx)
- kernel configuration or /proc/config.gz (if you have it)
----------------------------------------

By the way, I have posted about some unusual behaviours of btrfs.
http://www.mail-archive.com/aufs-users@lists.sourceforge.net/msg02430.html
Again I begin thinking btrfs is not usable still as aufs branch.


J. R. Okajima

------------------------------------------------------------------------------
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