Skip to content

Add filesystem notification (fsnotify) support#714

Draft
realrajaryan wants to merge 1 commit into
apple:mainfrom
realrajaryan:fsnotify
Draft

Add filesystem notification (fsnotify) support#714
realrajaryan wants to merge 1 commit into
apple:mainfrom
realrajaryan:fsnotify

Conversation

@realrajaryan

Copy link
Copy Markdown
Member

This PR adds support for guest-side filesystem notifications for apple/container#141. It adds a NotifyFileSystemEvent gRPC RPC so the host can send filesystem events to the guest. A dedicated worker thread enters the container's mount namespace with setns() and triggers synthetic inotify events using no-op chmod, which produces IN_ATTRIB. The worker uses a Mutex protected queue with pipe-based IPC. I'll add the host-side file watching to container later.

@realrajaryan realrajaryan requested a review from dcantah April 30, 2026 23:49
@realrajaryan realrajaryan marked this pull request as draft April 30, 2026 23:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants