Page MenuHomeFreeBSD

fusefs: don't fake the mountpoint's stat info before FUSE_INIT completes
Needs ReviewPublic

Authored by asomers on Jun 11 2025, 9:41 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jul 17, 2:03 AM
Unknown Object (File)
Mon, Jul 7, 1:16 AM
Unknown Object (File)
Sun, Jul 6, 1:03 PM
Unknown Object (File)
Sat, Jul 5, 6:52 PM
Unknown Object (File)
Sat, Jul 5, 11:27 AM
Unknown Object (File)
Tue, Jul 1, 5:07 AM
Unknown Object (File)
Sun, Jun 29, 6:56 PM
Unknown Object (File)
Sat, Jun 28, 4:07 AM
Subscribers

Details

Reviewers
arrowd
Summary

Ever since the first GSoC contribution, fusefs has had a curious
behavior. If the daemon hasn't finished responding to FUSE_INIT,
fuse_vnop_getattr would reply to VOP_GETATTR requests for the mountpoint
by returning all zeros. I don't know why. It isn't necessary for
unmounting, even if the daemon is dead.

Delete that behavior. Now VOP_GETATTR for the mountpoint will wait for
the daemon to be ready, just like it will for any other vnode.

Reported by: Vassili Tchersky
MFC after: 2 weeks
Sponsored by: ConnectWise

Test Plan

Test case added

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 64770
Build 61654: arc lint + arc unit