D20301: Ensure to add a trailing / at the end of fstab mounted devices.

Stefan BrĂ¼ns noreply at phabricator.kde.org
Sun May 5 19:03:30 BST 2019


bruns added a comment.


  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.

REPOSITORY
  R245 Solid

REVISION DETAIL
  https://phabricator.kde.org/D20301

To: meven, bruns, lukas, broulik
Cc: ngraham, kde-frameworks-devel, michaelh, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20190505/6901f7c4/attachment.html>


More information about the Kde-frameworks-devel mailing list