|
Posted by Ilya Zakharevich on November 12, 2005, 7:29 am
Please log in for more thread options
[A complimentary Cc of this posting was sent to
Kevin Goess
> This is a new module to work with extended file attributes on Linux
> (that's a newish Linux kernel feature that allows you to associate
> arbitrary name/value pairs with a file).
>
> I'm proposing Linux::xattr as the namespace (that mirrors the python and
> ruby packages). Any comments on the namespace?
Well, on OS/2 it is called OS2::ExtAttr. Do not know how Win* ports
have it (NTFS has this feature too - actually, it is even easier
to accessible - just open "Filename:FieldName").
> Regarding the interface and Perl function names, the command-line tools
> in the original attr package from http://acl.bestbits.at/ are named
>
> setfattr
> getfattr
>
> and their C library functions are named
>
> attr_set
> attr_get
> attr_remove
>
> I was going to make the Perl functions look like the command-line tools
> and call them
OS2::ExtAttr is supposed to be used mostly via tie(). It comes with
Perl distribution; consult it for details.
Hope this helps,
Ilya
|