[Bugs] [Bug 1452961] New: [PATCH] incorrect xattr list handling on FreeBSD
bugzilla at redhat.com
bugzilla at redhat.com
Sun May 21 08:59:26 UTC 2017
https://bugzilla.redhat.com/show_bug.cgi?id=1452961
Bug ID: 1452961
Summary: [PATCH] incorrect xattr list handling on FreeBSD
Product: GlusterFS
Version: 3.10
Component: posix
Assignee: bugs at gluster.org
Reporter: nfsmwlin at gmail.com
CC: bugs at gluster.org
Created attachment 1280683
--> https://bugzilla.redhat.com/attachment.cgi?id=1280683&action=edit
patch
Description of problem:
The Linux llistxattr() system call and the FreeBSD extattr_list_link() system
call both get the list of xattrs, but in different format (check the
manpages):
Linux: attr<\0>attr<\0>
FreeBSD: <attr_len>attr<attr_len>attr
But in the caller sys_llistxattr and sys_flistxattr do not take the format
difference into account.
This patch is based on v3.9.0, it fixes the problem by introducing a new
function extattr_list_reshape to reshape the FreeBSD list format into Linux's.
This patch is authored by Iblis Lin <iblis at hs.ntnu.edu.tw> and tested by
Pellaeon Lin <pellaeon at cnmc.tw>
For your reference, here's the Gist comparing GDB output of volume process with
and without patch:
https://gist.github.com/pellaeon/bfa9b094e11b47a88bf51f5aa73b9a6d
--
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
More information about the Bugs
mailing list