Re: RFC: new module Linux::xattr



[A complimentary Cc of this posting was sent to
Kevin Goess
<cpan@xxxxxxxxx>], who wrote in article <W9udnTv7_KvYbenenZ2dnUVZ_sidnZ2d@xxxxxxxxxxxxx>:
> 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
.



Relevant Pages

  • RFC: new module Linux::xattr
    ... 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 ... Regarding the interface and Perl function names, ... the current working code is at ...
    (comp.lang.perl.modules)
  • Extended file atributes
    ... I was just reading about something called "extended file atributes", ... in Linux. ... This seems to be a way to store arbitray tag -> value pairs ...
    (freebsd-questions)
  • Re: How to save SUN. If you work for SUN, read my ideas!
    ... >> Linux implements it via an ioctl() on the file. ... I was talking about extended file flags. ... EMail:joerg@schily.isdn.cs.tu-berlin.de Jörg Schilling D-13353 Berlin ...
    (comp.unix.solaris)