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

Dominik Haumann dhaumann at kde.org
Sun Aug 28 12:25:39 UTC 2016


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

(Updated Aug. 28, 2016, 12:25 p.m.)


Status
------

This change has been marked as submitted.


Review request for Kate, KDE Frameworks and Christoph Cullmann.


Changes
-------

Submitted with commit 0da25aabbfbb9595c8d6f047027023770ff7eef3 by Christoph Cullmann to branch master.


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/20160828/793d5d52/attachment.html>


More information about the Kde-frameworks-devel mailing list