The nfs mounted device are listed without a trailing / according to my testing, preventing them to be grouped with the unmounted device.
BUG: 406242
CCBUG: 390691
FIXED-IN: 5.58
The nfs mounted device are listed without a trailing / according to my testing, preventing them to be grouped with the unmounted device.
BUG: 406242
CCBUG: 390691
FIXED-IN: 5.58
You need an fstab configured nfs drive.
I have tested in Dolphin as well.
No Linters Available |
No Unit Test Coverage |
Buildable 10513 | |
Build 10531: arc lint + arc unit |
The patch is currently quite naive.
Should I add a check if (!device.endsWith('/') ?
Is it sound enough ?
I believe QFile::decodeName returns fileNames without a trailing '/'
It could be that it is the unmounted device that would need to remove its ending '/'
I think this is the wrong way round:
man mount.cifs:
The mount.cifs utility attaches the UNC name (exported network resource) specified as service (using //server/share syntax, where "server" is the server name or IP address and "share" is the name of the share) to the local directory mount-point.
man mount.nfs
remotetarget is a server share usually in the form of servername:/path/to/share. dir is the directory on which the file system is to be mounted.
In general, the "device" has no trailing slash. Apparently the kernel (or mount?) strips it for CIFS, but not for NFS.
The correct approach, to avoid double entries in case the user has added a '/' to the device, is to compare the entries slash-insensitive.