<table><tr><td style="">cochise updated this revision to Diff 48380.<br />cochise added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D17816">View Revision</a></tr></table><br /><div><div><p>Refactored to a function, works on all use cases. Data corruption remains</p>

<p>Summary: Found the place to put the call for files and directories on<br />
copyjob.cpp.<br />
Reverted almost all changes in file_unix, except a fix for *BSD headers.<br />
Cureently, manual tests works on copy, move, and copy/move with renames.<br />
I think the results and design are aceptavle so far.</p>

<p>If the qDebug calls are disabled, xattr_src (path from source file) gets<br />
corrupted on my system. I suspect there is someting nasty happening when<br />
glibc writes on the buffers (val and key). Will do some debugging now,<br />
and then write some unit tests.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R241 KIO</div></div></div><br /><div><strong>CHANGES SINCE LAST UPDATE</strong><div><a href="https://phabricator.kde.org/D17816?vs=48255&id=48380">https://phabricator.kde.org/D17816?vs=48255&id=48380</a></div></div><br /><div><strong>BRANCH</strong><div><div>xattr-copy-support (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D17816">https://phabricator.kde.org/D17816</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/core/config-kiocore.h.cmake<br />
src/core/copyjob.cpp<br />
src/ioslaves/file/file_unix.cpp</div></div></div><br /><div><strong>To: </strong>cochise, dfaure<br /><strong>Cc: </strong>davidedmundson, ngraham, atha.kane, spoorun, nicolasfella, kde-frameworks-devel, michaelh, bruns<br /></div>