Review Request: kio-file: sync file copy to /media/

Davide Bettio davide.bettio at
Sat Jan 23 14:23:52 GMT 2010

This is an automatically generated e-mail. To reply, visit:

(Updated 2010-01-23 14:23:52.495767)

Review request for kdelibs, Kevin Ottens and David Faure.


It seems that the previous patch might damage flash devices because it updates file metadata too often.
This patch in the worst case updates file metadata only once for each file when the file is closed.
I'm still using an hardcoded path because KMountPoint can't help me and I'm still not sure if using solid is a good idea.


This simple patch allows file copy to external devices to be synchronous. This patch assumes that external devices are mounted on a subdirectory of /media/. If /media/ is not used this patch will not work so everything will be as before.
For more dettails see also

Diffs (updated)

  /trunk/KDE/kdelibs/kioslave/file/file_unix.cpp 1077183 



This patch is recent, so I'm testing it right now. kio-file is a critical component so I will do more tests.

Checking for file corruption might be a good idea:
dd if=/dev/full of=testFile count=numOfBlocks
md5sum testFile
Copy it, umount, mount and check the md5sum.



More information about the kde-core-devel mailing list