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

Can not make it work with usbmount #431

Closed
vivekanand1101 opened this issue Jan 1, 2018 · 3 comments
Closed

Can not make it work with usbmount #431

vivekanand1101 opened this issue Jan 1, 2018 · 3 comments

Comments

@vivekanand1101
Copy link

vivekanand1101 commented Jan 1, 2018

I am trying to automate the mounting + detecting a pendrive using usbmount and python-watchdog but, i am not able to make it work. Usbmount is able to detect the pendrive and it is mounted at the correct place (/media/usb). I can see the files using ls but, i expected python-watchdog to detect the "creation" or "modified" event which is not happening. I am using FileSystemEventHandler

@Rocking80
Copy link

I got the same issue. Seems watchdog cannot detect changes which not happen on local system.

@xandriaw
Copy link

I am having a similar issue with an NFS mount (inside docker). Seems like it doesn't detect the file creation there either :( . If I then copy from inside the machine where python is running to itself, then the file is detected.

@danilobellini
Copy link
Collaborator

This seems to be an environment/OS issue, not a watchdog one.

Are you all using the PollingObserver or the default Observer? Are you all using Linux? If yes, which Linux?

From the mount point and the "NFS in Docker", I think you're all on Linux using the inotify observer on a FUSE or network-based file system that has no kernel support for inotify. That means the application can't rely on inotify.

If that's what's going on, there's nothing in this project that could be done: you need to either use the polling observer in the application code, or fix this issue upstream (Linux kernel? inotify? Some driver?) to work with those file systems.

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

No branches or pull requests

4 participants