]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
fusefs: fix intermittency in some ENOENT tests
authorasomers <asomers@FreeBSD.org>
Mon, 18 May 2020 18:36:32 +0000 (18:36 +0000)
committerasomers <asomers@FreeBSD.org>
Mon, 18 May 2020 18:36:32 +0000 (18:36 +0000)
commit9c8e44dbe1a663c9ff89ac939b163eeff712bec4
treea480f37f0846ccb579c70175b2c471486008247b
parent9a8ba47e7d9d0024748ec977274f02d067d8e933
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