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

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


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard.kde.org/r/2690/
-----------------------------------------------------------

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


Review request for kdelibs, Kevin Ottens and David Faure.


Changes
-------

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.


Summary
-------

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 https://bugs.kde.org/show_bug.cgi?id=195044.


Diffs (updated)
-----

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

Diff: http://reviewboard.kde.org/r/2690/diff


Testing
-------

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.


Thanks,

Davide





More information about the kde-core-devel mailing list