Page MenuHomeFreeBSD

fusefs: fix the tests for a wider range of maxphys
ClosedPublic

Authored by asomers on Dec 24 2020, 7:57 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Mar 16, 6:41 AM
Unknown Object (File)
Feb 6 2024, 8:06 AM
Unknown Object (File)
Dec 23 2023, 12:10 AM
Unknown Object (File)
Dec 16 2023, 8:25 AM
Unknown Object (File)
Dec 3 2023, 5:54 AM
Unknown Object (File)
Dec 3 2023, 5:54 AM
Unknown Object (File)
Dec 3 2023, 5:54 AM
Unknown Object (File)
Dec 3 2023, 5:54 AM
Subscribers

Details

Summary

fusefs: fix the tests for a wider range of maxphys

maxphys is now a tunable, ever since r368124. The default value is also
larger than it used to be. That broke several fusefs tests that made
assumptions about maxphys.

  • WriteCluster.clustering used the MAXPHYS compile-time constant.
  • WriteBackAsync.direct_io_partially_overlaps_cached_block implicitly depended on the default value of maxphys. Fix it by making the dependency explicit.
  • Write.write_large implicitly assumed that maxphys would be no more than twice maxbcachebuf. Fix it by explicitly setting m_max_write.
  • WriteCluster.clustering and several others failed because the MockFS module did not work for max_write > 128KB (which most tests would set when maxphys > 256KB). Limit max_write accordingly. This is the same as fusefs-libs's behavior.
  • Bmap's tests were originally written for MAXPHYS=128KB. With larger values, the simulated file size was too small.

PR: 252096

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 35684
Build 32573: arc lint + arc unit

Event Timeline

@cem thanks for reviewing D27770 during the holiday week. Could you also review this one too, please?

I'm not familiar with this code but seems reasonable.

tests/sys/fs/fusefs/bmap.cc
86

Worth a comment explaining how the values are chosen?

Don't have the background to really review, but this looks fine to me

This revision was not accepted when it landed; it landed in state Needs Review.Dec 28 2020, 6:57 PM
This revision was automatically updated to reflect the committed changes.