]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
FUSE extattrs: fix issue when neither uio nor size were not passed to VOP_*.
authorFedor Uporov <fsu@FreeBSD.org>
Tue, 21 Aug 2018 18:39:47 +0000 (18:39 +0000)
committerFedor Uporov <fsu@FreeBSD.org>
Tue, 21 Aug 2018 18:39:47 +0000 (18:39 +0000)
commit493b4a8ccdcc52bdf1158d399c05abeaa1d065c0
treef2c6609aac936cb71451106887ce5cbf76d8ca01
parent4c1e1d2bccb31ef2ca0c7b4a405a2b6979682bcf
FUSE extattrs: fix issue when neither uio nor size were not passed to VOP_*.

The requested size was returned incorrectly in case uio == NULL from listextattr because the
nameprefix/name conversion was not applied.
Also, make a_size/uio returning logic more unified with other filesystems.

Reviewed by:    cem, pfg
MFC after:      2 weeks

Differential Revision: https://reviews.freebsd.org/D13528
sys/fs/fuse/fuse_kernel.h
sys/fs/fuse/fuse_vnops.c