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

            Bug ID: 522308
           Summary: 'Scanning devices' tries to mount all automounted CIFS
                    shares, twice per local disk
    Classification: Applications
           Product: partitionmanager
      Version First 26.04.2
       Reported In:
          Platform: openSUSE
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

DESCRIPTION

I am using systemd automounting for a few SMB shares to my NAS:

//vault.seri/retro    /mnt/retro    cifs  
noauto,x-systemd.automount,noserverino,file_mode=0777,dir_mode=0777,noperm,_netdev,forceuid,forcegid,uid=seri,gid=seri,credentials=/home/seri/.smbcredentials
0 0
(similar entries for the other shares)

The NAS is currently offline, so those mounts fail after a 5 second timeout.
This, however, makes KDE Partition Manager almost impossible to open, as it
seems to go through the entire list of defined shares and tries to mount each
of them during the 'scanning devices' process.

In total, it seems to try to mount each share twice, *twice per disk being
scanned*. In my case that's 7 shares * 2 tries * 2 times * 3 local disks = 84
mount attempts, equalling to a 'scanning devices' time of about 7 minutes.


STEPS TO REPRODUCE
1. Add a cifs automount share to the fstab, pointing to an address that cannot
be resolved, letting it run into a timeout
2. Reboot, then keep `sudo dmesg -w` open
3. Open KDE Partition manager

OBSERVED RESULT

(I already reduced the timeout to 500ms here to make it bearable to open)

[  302.427850] [  T10149] CIFS: Attempting to mount //vault.seri/oldpc
[  303.158504] [  T10149] CIFS: VFS: Error connecting to socket. Aborting
operation.
[  303.158510] [  T10149] CIFS: VFS: cifs_mount failed w/return code = -4
[  303.179988] [  T10153] CIFS: Attempting to mount //vault.seri/oldpc
[  303.908460] [  T10153] CIFS: VFS: Error connecting to socket. Aborting
operation.
[  303.908466] [  T10153] CIFS: VFS: cifs_mount failed w/return code = -4
[  303.939251] [  T10157] CIFS: Attempting to mount //vault.seri/other
[  304.658531] [  T10157] CIFS: VFS: Error connecting to socket. Aborting
operation.
[  304.658539] [  T10157] CIFS: VFS: cifs_mount failed w/return code = -4
[  304.676716] [  T10161] CIFS: Attempting to mount //vault.seri/other
[  305.408430] [  T10161] CIFS: VFS: Error connecting to socket. Aborting
operation.
[  305.408435] [  T10161] CIFS: VFS: cifs_mount failed w/return code = -4
[  305.426001] [  T10165] CIFS: Attempting to mount //vault.seri/retro
[  306.158434] [  T10165] CIFS: VFS: Error connecting to socket. Aborting
operation.
[  306.158438] [  T10165] CIFS: VFS: cifs_mount failed w/return code = -4
[  306.176201] [  T10172] CIFS: Attempting to mount //vault.seri/retro
[  306.908412] [  T10172] CIFS: VFS: Error connecting to socket. Aborting
operation.
[  306.908417] [  T10172] CIFS: VFS: cifs_mount failed w/return code = -4
[  306.927897] [  T10178] CIFS: Attempting to mount //vault.seri/software
[  307.658409] [  T10178] CIFS: VFS: Error connecting to socket. Aborting
operation.
[  307.658415] [  T10178] CIFS: VFS: cifs_mount failed w/return code = -4
[  307.676133] [  T10182] CIFS: Attempting to mount //vault.seri/software
[  308.408863] [  T10182] CIFS: VFS: Error connecting to socket. Aborting
operation.
[  308.408868] [  T10182] CIFS: VFS: cifs_mount failed w/return code = -4
...

EXPECTED RESULT

Should KDE Partition Manager cause CIFS shares to be mounted at all? If so:

1. Don't retry 4 times per local disk
2. Ideally make that visible in the 'scanning devices' UI

A "cancel" button would also be nice :)


SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20260625
KDE Plasma Version: 6.7.1
KDE Frameworks Version: 6.27.0
Qt Version: 6.11.1
Kernel Version: 7.0.12-1-default (64-bit)
Graphics Platform: Wayland
Processors: 32 × AMD Ryzen 9 7950X 16-Core Processor
Memory: 64 GiB of RAM (62.4 GiB usable)
Graphics Processor: AMD Radeon RX 6900 XT

ADDITIONAL INFORMATION

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

Reply via email to