<table><tr><td style="">ahmadsamir updated this revision to Diff 79071.<br />ahmadsamir retitled this revision from "[FileProtocol] change statx stat_dev() to use device major + minor" to "[FileProtocol] change statx stat_dev() to return makedev(major, minor)".<br />ahmadsamir edited the summary of this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-gbgextghy2qe5tm/">(Show Details)</a><br />ahmadsamir edited the test plan for this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-qirszgz2s4hchf7/">(Show Details)</a><br />ahmadsamir removed a subscriber: bruns.<br />ahmadsamir 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/D28478">View Revision</a></tr></table><br /><div><div><p>Use makedev()</p></div></div><br /><div><strong>CHANGES TO REVISION SUMMARY</strong><div><div style="white-space: pre-wrap; color: #74777D;"><div style="padding: 8px 0;">...</div>Change it to <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">combine </span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">return makedev(</span>stx_dev_major<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);"> and</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">,</span> stx_dev_minor<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">)</span> to get a unique<br />
<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">number</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">ID</span> (meaning a unique UDSEntry::UDS_DEVICE_ID).<div style="padding: 8px 0;">...</div></div></div></div><br /><div><strong>CHANGES TO TEST PLAN</strong><div><div style="white-space: pre-wrap; color: #74777D;"><div style="padding: 8px 0;">...</div>Device: 803h/2051d Inode: 97 Links: 1<br />
<br />
<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">Apply small patch from http://www.davidfaure.fr/2020/uds_device_test.diff,<br />
then:<br />
$ kioclient5 openProperties /usr/bin/file<br />
"DEVICE" 804<br />
$ kioclient5 openProperties ~/.bashrc<br />
"DEVICE" 803<br />
<br />
without this change DEVICE would be "8" for both of these files</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">Run jobtest unit test and check the debug output from statDetailsWithInode</span>.</div></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/D28478?vs=79044&id=79071">https://phabricator.kde.org/D28478?vs=79044&id=79071</a></div></div><br /><div><strong>BRANCH</strong><div><div>l-statx (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D28478">https://phabricator.kde.org/D28478</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>autotests/jobtest.cpp<br />
autotests/jobtest.h<br />
src/ioslaves/file/file_unix.cpp</div></div></div><br /><div><strong>To: </strong>ahmadsamir, Frameworks, dfaure, meven, bruns<br /><strong>Cc: </strong>kde-frameworks-devel, LeGast00n, cblack, GB_2, michaelh, ngraham, bruns<br /></div>