Page MenuHomeFreeBSD

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

Authored by asomers on Jun 11 2025, 9:41 PM.
Tags
None
Referenced Files
F139445349: D50800.id156845.diff
Fri, Dec 12, 4:23 AM
Unknown Object (File)
Wed, Dec 10, 9:34 AM
Unknown Object (File)
Fri, Nov 28, 10:30 PM
Unknown Object (File)
Fri, Nov 28, 6:50 AM
Unknown Object (File)
Wed, Nov 26, 11:57 PM
Unknown Object (File)
Tue, Nov 25, 7:09 PM
Unknown Object (File)
Tue, Nov 25, 5:50 PM
Unknown Object (File)
Sat, Nov 15, 7:36 AM
Subscribers

Details

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 Not Applicable
Unit
Tests Not Applicable