[Gluster-devel] Need help from FreeBSD developers

Kaushal M kshlmster at gmail.com
Fri Jun 24 08:09:48 UTC 2016


On Fri, Jun 24, 2016 at 1:00 PM, Pranith Kumar Karampuri
<pkarampu at redhat.com> wrote:
> hi,
>     Based on the debugging done by Niels on the bug
> https://bugzilla.redhat.com/show_bug.cgi?id=1181500#c5, we need a
> confirmation about what listxattr returns on FreeBSD. Could someone please
> help?

sys_llistxattr() is a wrapper around extattr_list_link() on BSDs, as
defined in libglusterfs/src/syscall.c

sys_llistxattr(path, list, size) -> extattr_list_link(path,
EXTATTR_NAMESPACE_USER, list, size)


The man page for extattr_list_link() is available at [1].

>From the man page,
'''
     extattr_list_file() returns a list of attributes present in the requested
     namespace. Each list entry consists of a single byte containing the
     length of the attribute name, followed by the attribute name.  The
     attribute name is not terminated by ASCII 0 (nul). The
     extattr_get_file(), and extattr_list_file() calls consume the data and
     nbytes arguments in the style of read(2);
'''
(The *link() syscalls behave the same as the *file() syscalls, expect
they don't follow symlinks)

~kaushal

[1] https://www.freebsd.org/cgi/man.cgi?query=extattr_list_link&apropos=0&sektion=0&manpath=FreeBSD+10.3-RELEASE+and+Ports&arch=default&format=html

>
> --
> Pranith
>
> _______________________________________________
> Gluster-devel mailing list
> Gluster-devel at gluster.org
> http://www.gluster.org/mailman/listinfo/gluster-devel


More information about the Gluster-devel mailing list