]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
fusefs: fix intermittency in some ENOENT tests
authorAlan Somers <asomers@FreeBSD.org>
Mon, 18 May 2020 18:36:32 +0000 (18:36 +0000)
committerAlan Somers <asomers@FreeBSD.org>
Mon, 18 May 2020 18:36:32 +0000 (18:36 +0000)
commit275379902e8eb40e67232e6eb39ee8ae3f13b0bb
treea480f37f0846ccb579c70175b2c471486008247b
parent6395219ae33fb1ec3a74e7380967447dea541022
fusefs: fix intermittency in some ENOENT tests

When a FUSE operation other than LOOKUP returns ENOENT, the kernel will
reclaim that vnode, resuling in a FUSE_FORGET being sent a short while
later.  Many of the ENOENT tests weren't expecting those FUSE_FORGET
operations.  They usually passed by luck since FUSE_FORGET is often delayed.
This commit adds appropriate expectations.

MFC after: 2 weeks
tests/sys/fs/fusefs/getattr.cc
tests/sys/fs/fusefs/open.cc
tests/sys/fs/fusefs/opendir.cc