Bug 442258

Summary: Solid::NetworkShare does not know SMB3 filesystem
Product: [Frameworks and Libraries] frameworks-solid Reporter: Alexander Reinholdt <alexander.reinholdt>
Component: generalAssignee: Lukáš Tinkl <lukas>
Status: RESOLVED FIXED    
Severity: normal CC: kdelibs-bugs, nate, sitter
Priority: NOR    
Version: 5.85.0   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed In: 5.98
Sentry Crash Report:

Description Alexander Reinholdt 2021-09-10 13:24:36 UTC
SUMMARY

Solid::NetworkShare does not know the network filesystem SMB3 and, thus, mounts with that filesystem are not detected on the system.

STEPS TO REPRODUCE

1. Connect a slot to the deviceAdded() signal of Solid::DeviceNotifier::instance().

2. Add the following if statement to the slot: 

if (device.isDeviceInterface(Solid::DeviceInterface::NetworkShare)) {
    qDebug() << "success";
} else {
    qDebug() << "failure";
}

3. Mount a Samba share with the SMB3 filesystem:

$ mount.smb3 //server/share /mount/point

OBSERVED RESULT

The output will always be "failure", even when a share with an SMB3 filesystem
is mounted.

EXPECTED RESULT

The output is "success" when a share with SMB3 filesystem is mounted and 
"failure" otherwise.

SOFTWARE/OS VERSIONS
Operating System: Manjaro Linux
KDE Plasma Version: 5.22.5
KDE Frameworks Version: 5.85.0
Qt Version: 5.15.2
Kernel Version: 5.13.13-1-MANJARO (64-bit)
Graphics Platform: X11

ADDITIONAL INFORMATION
Comment 1 Alexander Reinholdt 2021-09-10 13:26:54 UTC
In addition: The output will be "success", when you mount the share with one of the defined filesystems (NFS and CIFS).
Comment 2 Harald Sitter 2021-09-13 12:19:33 UTC
From looking at the code I guess it needs adding to the list of NetworkShare mount types in FstabDevice and supposedly also adding to _k_isFstabNetworkFileSystem.
Comment 3 Bug Janitor Service 2022-08-07 14:16:43 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/solid/-/merge_requests/100