HomeFreeBSD

fusefs: Fix intermittency in the BadServer.ShortWrite test case

Description

fusefs: Fix intermittency in the BadServer.ShortWrite test case

We were using the m_quit bit for two similar but distinct uses:

  • To instruct the server to quit
  • To cope with the kernel forcibly unmounting the fs

Fix the intermittent test failure by adding a separate bit,
m_expect_unmount, to handle cases like the latter.

Reported by: Siva Mahadevan <me@svmhdvn.name>
Revied by: Siva Mahadevan <me@svmhdvn.name>
Differential Revision: https://reviews.freebsd.org/D53357

(cherry picked from commit d86025c1d49c84c4dc8c3635c83c078ad56e5a53)

Details