Skip to content
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

EFLOW and shared folders not triggering inotify events #270

Closed
beckerben opened this issue Oct 7, 2023 · 2 comments
Closed

EFLOW and shared folders not triggering inotify events #270

beckerben opened this issue Oct 7, 2023 · 2 comments
Assignees
Labels
question Further information is requested

Comments

@beckerben
Copy link

Question Summary
Do shared folders support seeing inotify events in EFLOW VM?

Detailed background
We were testing with EFLOW for some of our modules and one of them is a file processing based module. It heavily relies on inotify events in order to determine when to process a file. This works great on our Linux based hosts and we saw the host file sharing feature was supported for EFLOW so assumed it would work but upon actual testing we are seeing it is not working.

It looks like any creation or modify events within files from the host in the shared folder are not triggering inotify events in the module container running within EFLOW.

If we connect-eflowvm and then "touch" the file, then it triggers our module to see it, but doing the same thing in the windows host does not.

Furthermore we found some other articles on the net that suggest this may be a limitation of virtio.

Ref 1
Ref 2

I just wanted to confirm our theory that there is no way to make EFLOW VM see the inotify events for items in shared folders mounted into EFLOW via the shared folder feature

@fcabrera23 fcabrera23 self-assigned this Oct 10, 2023
@fcabrera23 fcabrera23 added the question Further information is requested label Oct 10, 2023
@fcabrera23
Copy link
Contributor

Hi @beckerben,

Thanks for reaching out. The current file/folder sharing mechanism does not support a way to notify when there are file changes. This is a current limitation of the underlying sharing technology we use.

Thanks,
Francisco

@beckerben
Copy link
Author

Thanks @fcabrera23, that was the conclusion we had come to so thanks for confirming.

We ended up solving this issue going a different direction with a custom samba module we developed which allows us to mount a samba share on the host and share files via a shared docker volume with access to the inotify events as expected by other modules running within EFLOW VM. This works well for our scenario where we'd be using EFLOW so we have a path forward which is good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants