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
Unknown Object (File)
Tue, Dec 17, 5:30 AM
Unknown Object (File)
Sun, Dec 15, 9:10 PM
Unknown Object (File)
Nov 20 2024, 8:59 AM
Unknown Object (File)
Nov 14 2024, 8:42 PM
Unknown Object (File)
Oct 30 2024, 10:45 AM
Unknown Object (File)
Oct 14 2024, 3:59 AM
Unknown Object (File)
Sep 28 2024, 4:11 AM
Unknown Object (File)
Sep 24 2024, 4:30 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