<table><tr><td style="">meven retitled this revision from "Ensure no trailing slash in mountpoint read from fstab file" to "Ensure mounted mounted nfs filesystems matches their fstab declared counterpart".<br />meven edited the summary of this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-huareu7ttdc7aol/">(Show Details)</a><br />meven edited the test plan for this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-2sosvbfcaj3krr7/">(Show Details)</a>
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D21204">View Revision</a></tr></table><br /><div><strong>CHANGES TO REVISION SUMMARY</strong><div><div style="white-space: pre-wrap; color: #74777D;"><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">When a nfs fs is declared in /etc/fstab and the filesystem path ends with a / (like 192.168.1.16:/home/meven/ ), once mounted the detected filesystem path does not have the slash.<br />
This causes the mounted drive not to match the umounted filesystem, causing the later bug.<br />
<br />
I.e :<br />
<br />
$ solid-hardware list<br />
[...]<br />
udi = '/org/kde/fstab/192.168.1.16:/home/meven/'  (fstab declared mount)<br />
udi = '/org/kde/fstab/192.168.1.16:/home/meven'    (mounted drive as returned by getmntent)<br />
<br />
The patch makes the logic in Solid::Backends::Fstab::FstabHandling::deviceList matching mounted and unmounted filesytems unsensitive to their path ending with /<br />
<br />
</span>BUG: 406242<div style="padding: 8px 0;">...</div></div></div></div><br /><div><strong>CHANGES TO TEST PLAN</strong><div><div style="white-space: pre-wrap; color: #74777D;"><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">Locally tested with Linux with a nfs drive set up with a path ending with a slash like<br />
192.168.1.16:/home/meven/ /media/NFS nfs defaults,user,auto,noatime,bg 0 0<br />
<br />
After patch<br />
$ solid-hardware list<br />
[...]<br />
udi = '/org/kde/fstab/192.168.1.16:/home/meven'    (mounted drive as returned by getmntent)<br />
<br />
Only one icon appears for the drive in places panel in Dolphin.<br />
<br />
Not tested with getmntinfo / BSD code path, but the patch does not alter the code behavior much and don't foresee any risk there.</span></div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R245 Solid</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D21204">https://phabricator.kde.org/D21204</a></div></div><br /><div><strong>To: </strong>meven, bruns, Frameworks<br /><strong>Cc: </strong>dhaumann, anthonyfieroni, ngraham, bruns, apol, kde-frameworks-devel, LeGast00n, michaelh<br /></div>