https://bugs.kde.org/show_bug.cgi?id=528116

Méven <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|REOPENED                    |RESOLVED
      Latest Commit|                            |https://invent.kde.org/fram
                   |                            |eworks/kio/-/commit/9dc15e3
                   |                            |dba80c0ca9bb23a98d9a530e516
                   |                            |b1133c

--- Comment #3 from Méven <[email protected]> ---
Git commit 9dc15e3dba80c0ca9bb23a98d9a530e516b1133c by Méven Car, on behalf of
Ramil Nurmanov.
Committed on 10/11/2026 at 11:15.
Pushed by meven into branch 'master'.

trash: Avoid watching trash directories on slow mounts

After adding the trash watcher, `TrashDirNotify` started monitoring physical
trash directories on all mounted filesystems, including NFS and other
slow/network mounts.

`KDirWatch` may periodically check such directories using synchronous `stat()`
calls. If an NFS server becomes unavailable, this can block `kded6`; I
reproduced this in an Arch VM with a hard-mounted NFS share, where `kded6`
entered `D` state while waiting for NFS RPC.

This change avoids probing and watching trash directories on mount points for
which `KMountPoint::probablySlow()` is true.

Normal trash operations on network filesystems are unchanged. The only
limitation is that external changes made directly to a remote `.Trash-*`
directory, outside of KIO, are no longer detected immediately. Local trash
monitoring continues to work as before.

M  +1    -1    src/core/kmountpoint.cpp
M  +24   -47   src/kioworkers/trash/kdedmodule/trashdirnotify.cpp
M  +6    -2    src/kioworkers/trash/kdedmodule/trashdirnotify.h
M  +5    -0    src/kioworkers/trash/trashimpl.cpp
M  +2    -0    src/kioworkers/trash/trashimpl.h

https://invent.kde.org/frameworks/kio/-/commit/9dc15e3dba80c0ca9bb23a98d9a530e516b1133c

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to