D8254: Make file ioslave backend on removeables are user-frendly on linux
Vova
noreply at phabricator.kde.org
Wed Oct 11 22:53:07 UTC 2017
vova7890 created this revision.
Restricted Application added a project: Frameworks.
Restricted Application added a subscriber: Frameworks.
REVISION SUMMARY
Currently on linux copying file on the flash drive is showing momental progress 0 -> 100% and at the end of 100% is waiting while file are flushed on the drive.
This is almost linux bug with dirty_cache, but had another way to write the file. This patch is implements by checking what drive has dest file, and tryng to optimize of file writing by cheking is the device are "removable"(if true - appends O_SYNC for ::open) and how many kbytes device can transfer per single transfer. So for now, the progress bar is shows real percent of progress and abort or pause is working are propertly.
REPOSITORY
R241 KIO
REVISION DETAIL
https://phabricator.kde.org/D8254
AFFECTED FILES
b/src/ioslaves/file/file_unix.cpp
To: vova7890
Cc: #frameworks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20171011/3030b3fd/attachment.html>
More information about the Kde-frameworks-devel
mailing list