[PATCH 21/23] Add ngnfs_xattr_list() and debugfs command
Auke Kok
auke.kok at versity.com
Sat Apr 5 22:10:59 PDT 2025
On Fri, Apr 4, 2025 at 11:48 AM Valerie Aurora <val at versity.com> wrote:
> + memcpy(la->buf + la->used, xattr->name, xattr->name_len);
> + memset(la->buf + la->used + xattr->name_len + 1, 0, 1);
This isn't right... it should be:
+ memset(la->buf + la->used + xattr->name_len, 0, 1);
e.g. if strlen("name") == 4, the first char "n" sits at [0], so the
"e" sits at [3] and therefore [4] needs to be zeroed.
Auke
More information about the ngnfs-devel
mailing list