]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
fusefs: updated cached attributes during VOP_LINK.
authorasomers <asomers@FreeBSD.org>
Wed, 8 May 2019 18:12:38 +0000 (18:12 +0000)
committerasomers <asomers@FreeBSD.org>
Wed, 8 May 2019 18:12:38 +0000 (18:12 +0000)
commit0456375cd37538b4da63b29c47998454362fb57d
tree104c0befa766bffdd13ad6d5a85d4719e4ffe3d8
parent156faea6b93df7524b12aa6d951e108abc210b3d
fusefs: updated cached attributes during VOP_LINK.

FUSE_LINK returns a new set of attributes.  fusefs should cache them just
like it does during other VOPs.  This is not only a matter of performance
but of correctness too; without caching the new attributes the vnode's nlink
value would be out-of-date.

Reported by: pjdfstest
Sponsored by: The FreeBSD Foundation
sys/fs/fuse/fuse_vnops.c
tests/sys/fs/fusefs/link.cc
tests/sys/fs/fusefs/setattr.cc