[PATCHSET 5/9] fuse2fs: refactor mount code

Darrick J. Wong
2025-11-06T22:28:57Z

Hi all,

Here, we hoist the mounting code out of main() into a pile of separate
helper functions to reduce the complexity of understanding the mount
code. This isn't strictly required for iomap, but it makes main() a lot
easier to understand.

If you're going to start using this code, I strongly recommend pulling
from my git trees, which are linked below.

Comments and questions are, as always, welcome.

e2fsprogs git tree:
https://git.kernel.org/cgit/linux/kernel/git/djwong/e2fsprogs.git/log/?h=fuse2fs-refactor-mounting
---
Commits in this patchset:
* fuse2fs: split filesystem mounting into helper functions
* fuse2fs: register as an IO flusher thread
* fuse2fs: adjust OOM killer score if possible
---
configure | 37 +++
configure.ac | 19 ++
lib/config.h.in | 3
misc/fuse2fs.c | 634 +++++++++++++++++++++++++++++++------------------------
4 files changed, 413 insertions(+), 280 deletions(-)