<table><tr><td style="">bruns created this revision.<br />bruns added reviewers: Dolphin, dfaure.<br />Herald added a project: Frameworks.<br />Herald edited subscribers, added: kde-frameworks-devel; removed: Frameworks.<br />bruns requested review of this revision.
</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/D28195">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>The attrib is a DWORD (32 bit unsigned int) in the Windows APIs (see<br />
WIN32_FILE_ATTRIBUTE_DATA), and exported as a 4 byte array by ntfs-3g.<br />
As the size is known, there is no need to query it. As each file has<br />
the "archive" flag set on creation, i.e. the first getxattr call typically<br />
never returns 0, this cuts the number of syscalls by half.</p>

<p>Skip the temporary hex encoding of the value, it is pointless to hex-<br />
encode the value and immediately after parse it again.</p></div></div><br /><div><strong>TEST PLAN</strong><div><ol class="remarkup-list">
<li class="remarkup-list-item">touch foo</li>
<li class="remarkup-list-item">getfattr -n system.ntfs_attrib_be -e hex foo</li>
<li class="remarkup-list-item">dolphin ./</li>
<li class="remarkup-list-item">setfattr -n system.ntfs_attrib_be -v 0x00000022</li>
<li class="remarkup-list-item">refresh dolphin</li>
</ol></div></div><br /><div><strong>REPOSITORY</strong><div><div>R241 KIO</div></div></div><br /><div><strong>BRANCH</strong><div><div>ntfs_hidden</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D28195">https://phabricator.kde.org/D28195</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/ioslaves/file/file_unix.cpp</div></div></div><br /><div><strong>To: </strong>bruns, Dolphin, dfaure<br /><strong>Cc: </strong>kde-frameworks-devel, LeGast00n, cblack, GB_2, michaelh, ngraham, bruns<br /></div>