Page MenuHomeFreeBSD

fusefs: don't send the namespace during listextattr
ClosedPublic

Authored by asomers on Aug 15 2019, 9:25 PM.
Tags
None
Referenced Files
F82056254: D21280.id60869.diff
Thu, Apr 25, 2:15 AM
Unknown Object (File)
Sun, Apr 21, 10:42 AM
Unknown Object (File)
Thu, Mar 28, 7:12 PM
Unknown Object (File)
Feb 6 2024, 10:01 AM
Unknown Object (File)
Jan 20 2024, 7:18 PM
Unknown Object (File)
Dec 23 2023, 9:34 AM
Unknown Object (File)
Dec 13 2023, 8:24 AM
Unknown Object (File)
Nov 1 2023, 5:36 PM
Subscribers

Details

Summary

fusefs: don't send the namespace during listextattr

The FUSE_LISTXATTR operation always returns the full list of a file's
extended attributes, in all namespaces. There's no way to filter the list
server-side. However, currently FreeBSD's fusefs driver sends a namespace
string with the FUSE_LISTXATTR request. That behavior was probably copied
from fuse_vnop_getextattr, which has an attribute name argument. It's
been there ever since extended attribute support was added in r324620. This
commit removes it.

Test Plan

Tested on the command line with a libfuse-based fuse file system. Unit
tests adjusted.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 25899
Build 24466: arc lint + arc unit

Event Timeline

sys/fs/fuse/fuse_vnops.c
2313

Don’t we have to filter in the vnop routine now to satisfy the VOP api?

sys/fs/fuse/fuse_vnops.c
2313

Do you mean filter the list for the requested namespace? Yes, and we had to filter it before. There never was any kind of server-side filtration. Line 2322 performs the filtration.

cem added inline comments.
sys/fs/fuse/fuse_vnops.c
2313

Do you mean filter the list for the requested namespace?

Yes.

Line 2322 performs the filtration.

Ah. It wasn't clear to me from the "convert" name that it also filtered for the chosen prefix. Thanks.

This revision is now accepted and ready to land.Aug 16 2019, 4:58 AM