Hello Michael, "Dipl.-Ing. Michael Niederle": > I check all files whether they are opened or not before removing them from > the > ramdisk-layer. It seems that I must not remove any file within a directory if > only a single file within that directory is kept open - otherwise I end up > with > an empty directory (seen by aufs - in the layers everything looks fine). This > is > definitely *not* a problem with whiteout-files.) > > I used the "udb=reval" and "udb=inotify" options - but without success. And > worse, sometimes I (logically) lose files even when I make all those checks.
Which is your case? - /aufs = /rw_ram + /ro_ext2_img + /rr_squash - cp /rw_ram/fileA /ro_ext2_img (bypassing aufs) - rm /rw_ram/fileA (bypassing aufs) - "ls /aufs" does NOT show fileA or - /aufs = /rw_ram + /ro_ext2_img + /rr_squash - dir = opendir("/aufs") - readdir(dir) - cp /rw_ram/fileA /ro_ext2_img (bypassing aufs) - rm /rw_ram/fileA (bypassing aufs) - readdir(dir) does NOT show fileA In the former case, I guess udba=inotify will solve the problem (you should use the latest aufs which is updated this Monday). In the latter, it is a generic feature/specification of unix filesystem. You need to call rewinddir() Junjiro Okajima ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/