-
-
Notifications
You must be signed in to change notification settings - Fork 396
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
File system change events (inotify) support for mounted directories #151
Comments
Yes, it is a Lima issue. I don't think it is possible to do inotify over sshfs, as sftp does not support it. There is some hope that we'll eventually be able to replace sshfs with 9p, but I think that doesn't support inotify either. If you have ideas, please file issues/prs against lima! |
I think your best bet is probably some kind of notification forwarder, like https://github.com/mhallin/notify-forwarder (there are others). If you do get something working, please post about it to the Lima discussions, or at least update this issue here! |
On second looks it seems to just set the atime and mtime fields on the guest to the current time; it doesn't trigger an inotify event, which would require kernel support. I'm out of ideas; maybe polling is all you can do. Please let us all know if you come up with something better! |
Done: lima-vm/lima#615 |
I will be closing this in favour of the upstream issue lima-vm/lima#615 |
Hi @abiosoft do you know if there was any movement from Lima on this, the most recent comment suggests it's supported in virtiofs now, but I'm not able to get it to work. |
My tests indicate it is indeed not supported. Some work still needs to be done on Colima's end to provide the feature. |
You can try out the development version
|
@abiosoft Very cool that there are things happening! I tried it, but there is no change :/ Are there any logs you'd like me to share? I see loglines like this:
But no lines match the files I am changing (
I'm on |
@henrik242 can you share a sample project to replicate your scenario? I think I know the cause. |
@abiosoft This is part of a large project, so it's not all that trivial. "Sadly" it worked in a next.js demo project I tried, but I'll try to find time to create something. |
I get a few of these in the log, are they related? |
That does not look related. Are there many log entries with same error? |
No, just about 1 in every 15:
|
With
But no |
Anyone interested in this feature should follow this issue #261. |
Are there any plans to support file system change events for mounted directories through inotify?
This is a key feature for us as we use containers in scenarios like auto-reloading dev servers and re-running unit tests on changes.
If there are no plans to support it at the moment, what kind of effort would be involved in adding this? Depending on the effort required, we might be open to putting together a PR to add support for this.
(If this is really an issue for lima, let me know and I'll raise this there.)
The text was updated successfully, but these errors were encountered: