<table><tr><td style="">bruns added a comment.
</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/D20301">View Revision</a></tr></table><br /><div><div><p>I think this is the wrong way round:</p>
<p>man mount.cifs:</p>
<blockquote style="border-left: 3px solid #a7b5bf; color: #464c5c; font-style: italic; margin: 4px 0 12px 0; padding: 4px 12px; background-color: #f8f9fc;"><p>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.</p></blockquote>
<p>man mount.nfs</p>
<blockquote style="border-left: 3px solid #a7b5bf; color: #464c5c; font-style: italic; margin: 4px 0 12px 0; padding: 4px 12px; background-color: #f8f9fc;"><p>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.</p></blockquote>
<p>In general, the "device" has no trailing slash. Apparently the kernel (or mount?) strips it for CIFS, but not for NFS.</p>
<p>The correct approach, to avoid double entries in case the user has added a '/' to the device, is to compare the entries slash-insensitive.</p></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/D20301">https://phabricator.kde.org/D20301</a></div></div><br /><div><strong>To: </strong>meven, bruns, lukas, broulik<br /><strong>Cc: </strong>ngraham, kde-frameworks-devel, michaelh, bruns<br /></div>