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

inotify(?) prevents disks from being unmounted #8

Closed
probonopd opened this issue Nov 3, 2019 · 1 comment
Closed

inotify(?) prevents disks from being unmounted #8

probonopd opened this issue Nov 3, 2019 · 1 comment

Comments

@probonopd
Copy link
Owner

probonopd commented Nov 3, 2019

inotify(?) prevents disks from being unmounted.

It should not.

Inotify watches can not prevent unmounting of filesystem. The documentation even mentions the specialized inotify event, that gets dispatched when the filesystem is unmounted: "IN_UNMOUNT - Filesystem containing watched object was unmounted". And if you were to read a tiny bit on the subject, you would discover, that inotify/fanotify have been specifically created to address issue of their predecessor dnotify, which didn't support unmounting watched directory.

Source: https://stackoverflow.com/questions/45951874/system-call-interface-to-proc-information#comment78876871_45951874

More information:
https://lwn.net/Articles/604686/

If it is not inotify, what is it then?

Interestingly this happens with the NTFS drive but not with e.g., Live ISO images written to USB disks.

@probonopd
Copy link
Owner Author

Actually we were just not closing files. Fixed in 3a4cf0a

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

1 participant