<table><tr><td style="">adridg 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/D17070">View Revision</a></tr></table><br /><div><div><p>With UFS, stat(1) tells me</p>

<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">[adridg@beastie .../kio/build]$ stat .
2080587972 222556 drwxr-xr-x 9 adridg adridg 4294967295 17 "Nov 22 14:40:28 2018" "Nov 22 14:42:22 2018" "Nov 22 14:42:22 2018" "Nov 22 14:39:51 2018" 131072 17 0x800 .</pre></div>

<p>So that's a size of 17 -- on UFS that looks like the count of the files in the directory (I added a file and then size is 18).</p>

<p>Without this patch: jobtest has 71 tests, all pass.<br />
With this patch: jobtest has 71 tests, 1 fails.</p>

<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">QDEBUG : JobTest::directorySize() totalSize:  50
QDEBUG : JobTest::directorySize() totalFiles:  7
QDEBUG : JobTest::directorySize() totalSubdirs:  4
FAIL!  : JobTest::directorySize() 'job->totalSize() >= 60' returned FALSE. (totalSize was 50)
   Loc: [/home/adridg/src/kde/tier-3/kio/autotests/jobtest.cpp(1099)]</pre></div>

<p>With this patch, and <a href="https://phabricator.kde.org/D17071" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;">D17071</a> as well, the failure is the same: 71 tests, 1 fails, same case and failure message.</p>

<p>(Note that I ran the test against Frameworks 5.51, since I don't have 5.52 installed yet)</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R241 KIO</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D17070">https://phabricator.kde.org/D17070</a></div></div><br /><div><strong>To: </strong>davidedmundson, dfaure<br /><strong>Cc: </strong>adridg, kde-frameworks-devel, michaelh, ngraham, bruns<br /></div>