🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: muc.lists.freebsd.bugs
3 messages
3 total messages Started by bugzilla-noreply Fri, 09 Oct 2026 02:51
[Bug 299241] inotify watches make unmount(2) fail with EBUSY
#27
Author: bugzilla-noreply
Date: Fri, 09 Oct 2026 02:51
41 lines
3143 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=299241

            Bug ID: 299241
           Summary: inotify watches make unmount(2) fail with EBUSY
           Product: Base System
           Version: 15.1-RELEASE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: sam@sheridan.co.uk
 Attachment #275512 text/plain
         mime type:

Created attachment 275512
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=275512&action=edit
inotify test: watches a directory and prints events

On 15.1-RELEASE-p4, an inotify watch on any directory of a file system
makes umount fail with EBUSY until the watcher exits. In practice, Thunar
showing a USB stick stops it from being ejected.

Reproduce with the attached inw.c:
  mount -t tmpfs tmpfs /mnt; mkdir /mnt/sub
  ./inw /mnt/sub &
  umount /mnt        # Device busy

See Also: 299239

-- 
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
[Bug 299241] inotify watches make unmount(2) fail with EBUSY
#34
Author: bugzilla-noreply
Date: Fri, 09 Oct 2026 14:32
26 lines
2968 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=299241

Mark Johnston <markj@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |markj@FreeBSD.org
             Status|New                         |Open

--- Comment #1 from Mark Johnston <markj@FreeBSD.org> ---
Hmm, right, inotify will bump the usecount on a watched vnode, which prevents
unmount (but forced unmount will work).

I guess we could downgrade that to a hold, but then we also need to make sure
that vnlru won't purge watched files/directories.

-- 
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
[Bug 299241] inotify watches make unmount(2) fail with EBUSY
#36
Author: bugzilla-noreply
Date: Fri, 09 Oct 2026 14:32
16 lines
2818 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=299241

Mark Johnston <markj@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|bugs@FreeBSD.org            |markj@FreeBSD.org

-- 
You are receiving this mail because:
You are the assignee for the bug.

--
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