Page MenuHomeFreeBSD

Handle ro remount of tmpfs rw mount.
ClosedPublic

Authored by kib on Mar 28 2019, 3:55 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Aug 1, 2:01 AM
Unknown Object (File)
Tue, Jul 8, 8:15 PM
Unknown Object (File)
Sat, Jul 5, 10:33 AM
Unknown Object (File)
Thu, Jul 3, 9:25 PM
Unknown Object (File)
Jun 21 2025, 1:35 AM
Unknown Object (File)
Jun 19 2025, 12:59 PM
Unknown Object (File)
Jun 14 2025, 4:07 PM
Unknown Object (File)
Jun 14 2025, 8:47 AM
Subscribers

Details

Summary

In particular:

  • suspend the mount around vflush() to avoid new writes come after the vnode is processed
  • flush pending metadata updates (mostly node times)
  • remap all rw mappings of files from the mount into ro (this is not clear to me how to handle best, might be revoke the mapping at all)
  • disable metadata updates after the mp is ro

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

At the moment this is FYI, the patch is the work in progress. Most important, it handles things I know are broken already, but complete audit of tmpfs is needed to identify the rest of it.

Looks good to my VFS-naive eye. Thanks!

This revision is now accepted and ready to land.Mar 28 2019, 5:36 PM

Update diff to the fixed committable version.

This revision now requires review to proceed.Apr 2 2019, 1:37 PM
This revision was not accepted when it landed; it landed in state Needs Review.Apr 2 2019, 1:41 PM
This revision was automatically updated to reflect the committed changes.