Review Request 127805: Backup Remote Files: Treat mounted files also as remote files

Dominik Haumann dhaumann at kde.org
Sun May 1 19:35:11 UTC 2016


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/127805/
-----------------------------------------------------------

Review request for Kate, KDE Frameworks and Christoph Cullmann.


Bugs: 362288
    https://bugs.kde.org/show_bug.cgi?id=362288


Repository: ktexteditor


Description
-------

When backup-remote-files is enabled, QUrl::isLocalFile() is used. However, isLocalFile() also returns true for files that are locally mounted (e.g. nfs, sshfs, ...).

This patch uses KMountPoint::probablySlow() such that mounted remote files are also treated as "true" remote files.

However, KMountPoint::probablySlow() right now only checks the filesystem for nfs, cifs, autofs, or subfs, see:
http://api.kde.org/frameworks-api/apidox-frameworks/frameworks5-apidocs/kio/html/kmountpoint_8cpp_source.html#l00535

So in addition to this patch, we may need to extend KMountPoint::probablySlow() to also return true for e.g. sshfs or similar common remote filessytems.

When reviewing the patch, please note, that katedocument.cpp also still often uses QUrl::isLocalFile(). These usages are still correct, afaics.


Diffs
-----

  src/document/katedocument.cpp d552b45 

Diff: https://git.reviewboard.kde.org/r/127805/diff/


Testing
-------

Compiles.


Thanks,

Dominik Haumann

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20160501/1bf07942/attachment.html>


More information about the Kde-frameworks-devel mailing list