Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
How one can access Ext2fs extended attributes? I didn't found
any respective modules at CPAN, maybe its's possible to
interact with libext2fs somehow.. I'd like to stat all of them
including compression (type/ratio).
One else minor question about built-in stat function - as I
understood stat is the same as lstat unlike C, so when I do
stat on symbolic link I got the referenced file info, not of
symlink file itself, am I wrong?
Cannot help you on the Ext2fs question. However, on the lstat/stat question, I can.
stat will always give you the actual file reference stats, not the symbolic link stats.
lstat will give you the actual file stats unless it is a symbolic link, then it will give you the symbolic link's stats.
This is exactly equivilant to C. Good luck on the ext2fs question.