Thread View: muc.lists.freebsd.hackers
2 messages
2 total messages
Started by abi
Mon, 19 Oct 2026 17:37
umount EBUSY and inotify watch
Author: abi
Date: Mon, 19 Oct 2026 17:37
Date: Mon, 19 Oct 2026 17:37
15 lines
4505 bytes
4505 bytes
Hello, I've noticed that sometimes it is impossible umount because of EBUSY under FreeBSD 15.x. Mostly fuse mounts with inotify watch, so it looks like inotify holds reference to vnode. Is it correct behavior? I think under Linux watched mounts can be unmounted without relying on -f flag. -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
Re: umount EBUSY and inotify watch
Author: Mark Johnston
Date: Tue, 20 Oct 2026 14:34
Date: Tue, 20 Oct 2026 14:34
26 lines
3045 bytes
3045 bytes
On Mon, Oct 19, 2026 at 08:37:03PM +0300, abi wrote: > Hello, > > I've noticed that sometimes it is impossible umount because of EBUSY under > FreeBSD 15.x. Mostly fuse mounts with inotify watch, so it looks like > inotify holds reference to vnode. Yes, this was reported in https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=299241 > > Is it correct behavior? I think under Linux watched mounts can be unmounted > without relying on -f flag. In general I'd expect an inotify watch to behave somewhat like an open fd, in which case it should indeed block regular unmount. But the implementation also aims to be compatible with Linux, so this behaviour should probably be changed. I think the watch needs to maintain a hold of the watched vnode, rather than incrementing its usecount. Then, we need to tweak vnlru to avoid reclaiming namecache entries originating from watched vnodes. -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads