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

Tomas Trnka <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REPORTED                    |CONFIRMED
     Ever confirmed|0                           |1
                 CC|                            |[email protected]

--- Comment #4 from Tomas Trnka <[email protected]> ---
This is caused by KIO commit
https://invent.kde.org/frameworks/kio/-/commit/4709688aa80d7fc2cac7bce7285f6830e4cbcf21
which accidentally triggers automounting of all mountpoints on every call to
KMountPoint::currentMountPoints (due to switching from stat() which never
automounts to statx() which automounts by default unless AT_NO_AUTOMOUNT is
passed in flags). This commit went into 6.23.0.

Not just Dolphin is affected, but also Krusader and anything else calling
KMountPoint::currentMountPoints.

The issue got silently fixed on the master branch by
https://invent.kde.org/frameworks/kio/-/commit/089402feef724812d3d842da46ac08fb1e173521

Until that change makes it into a release, the following trivial patch fixes
the issue on 6.23.0:
===== begin patch =====
--- kio-6.23.0_orig/src/core/kmountpoint.cpp    2026-02-06 13:15:16.000000000
+0100
+++ kio-6.23.0/src/core/kmountpoint.cpp 2026-02-26 14:04:23.052379920 +0100
@@ -372,7 +372,7 @@
                 }
 #endif

-                if (struct statx buff; statx(AT_FDCWD, mnt_fs_get_target(fs),
AT_STATX_DONT_SYNC, STATX_INO, &buff) == 0) {
+                if (struct statx buff; statx(AT_FDCWD, mnt_fs_get_target(fs),
AT_STATX_DONT_SYNC | AT_NO_AUTOMOUNT, STATX_INO, &buff) == 0) {
                     mp->d->m_deviceId = makedev(buff.stx_dev_major,
buff.stx_dev_minor);
                 }

===== end patch =====

(For those on Fedora 43, I have a patched build in Copr:
https://copr.fedorainfracloud.org/coprs/tootea/earlybird/build/10172052/ )

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

Reply via email to