There is a bug in aufs where fstat() returns a st_size value of zero. 
This causes cpio to fail on symlinks because st_size is supposed to be 
the symlink string length. It also causes 'du' to return usage sizes of 
zero unless the "--apparent" option is used.

I am using aufs 20081208 in SLAX. I can send more details if needed.

Technically, it may be valid to return zero for virtual files if they 
don't use space in base union filesystem. However, it is definitely a 
bug to return zero for symlink names.

Looking at sources for Linux coreutils, they don't fail because they all 
use a function to read symlinks that is intended to be tolerant of buggy 
filesystems. But, it uses multiple readlink() calls because it has to 
guess the length.

Joe Krahn

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com

Reply via email to