tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: extended attributes and lsextattr/extattr_list_file

On Thu, Jun 30, 2011 at 07:10:57AM +0200, Emmanuel Dreyfus wrote:
> Emmanuel Dreyfus <> wrote:
> [Linux flavor]
> > - Attribute values cannot contain a NUL character
> [FreeBSD flavor]
> > - Attribute value cannot cannot be bigger than 255 bytes
> This is nonsense posted too early in the morning :-) The attribute value
> can contain random binary data in both API. 
> Attribute *names* have the constraints above in the extattr_list_file()
> and listxattr() system calls. But  since attribute names are passed as
> NUL-terminated strings input arguments for get/set/remove operations of
> both API, they cannot contain a NUL character anyway, both with FreeBSD
> and Linux API.
> So here is my fixed sumary:

Thanks, that makes this much clearer!  Based on your summary, I think I
like the listxattr() API better.


Home | Main Index | Thread Index | Old Index