Skip to content

Add notify_inval_inode and extend get_rootfs to return fs_idx for umount #211

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sidneychang
Copy link

This PR includes two related improvements to better support multi-filesystem
mounting scenarios on fuse, especially during unmount operations:

  1. Add notify_inval_inode support in fusedev, enabling user space to
    explicitly notify the kernel to invalidate inode page caches. This helps
    clear caches properly after unmounting.

  2. Extend the VFS method get_rootfs to return both the mounted backend
    filesystem (Arc) and its associated filesystem index
    (fs_idx). Although multi-filesystem mounting is already supported,
    returning fs_idx is necessary for proper unmount handling and cache
    invalidation.

The implementation follows fuse kernel and libfuse protocols and maintains
compatibility with existing patterns like notify_inval_entry.

Copy link
Collaborator

@imeoer imeoer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, LGTM!

@sidneychang sidneychang force-pushed the notify-inval-inode-and-get-rootfs-fsidx branch from 5e79e19 to c093957 Compare August 13, 2025 04:40
@sidneychang sidneychang force-pushed the notify-inval-inode-and-get-rootfs-fsidx branch from c093957 to a25fdc0 Compare August 13, 2025 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants