<p dir="ltr"><br>
On Jul 15, 2013 5:51 PM, &quot;Lennart Poettering&quot; &lt;<a href="mailto:mzerqung@0pointer.de">mzerqung@0pointer.de</a>&gt; wrote:<br>
&gt;<br>
&gt; On Tue, 16.07.13 09:13, Dan Fruehauf (<a href="mailto:malkodan@gmail.com">malkodan@gmail.com</a>) wrote:<br>
&gt;<br>
&gt; &gt; &gt; Well, there are certain things on Unix that are text files and many<br>
&gt; &gt; &gt; things that are not. Binary log files have a long tradition on Unix, for<br>
&gt; &gt; &gt; example in wtmp and utmp. We have binary files in /etc, and everywhere<br>
&gt; &gt; &gt; else.<br>
&gt; &gt; &gt;<br>
&gt; &gt; And the reason for that being? I have no idea either, it&#39;s probably too old<br>
&gt; &gt; to be dug. Howver yes, I&#39;d like these to be text based as well.<br>
&gt;<br>
&gt; Oh, the reasons are pretty well-known for those cases. For example<br>
&gt; wtmp/utmp is binary so that utmp works nicely as sparse file and the<br>
&gt; entries may be accessed using the UID number as seek index (multipled by<br>
&gt; the fixed entry size). So, it&#39;s about indexing, exactly as for journal<br>
&gt; files. The Unix guys back then chose binary when it made sense for their<br>
&gt; immediate technical requirements. And for us it&#39;s the exact same.</p>
<p dir="ltr">I don&#39;t believe that was the reason, since when utmp was invented, Unix had 16-bit UIDs and did not have sparse files.  On the other hand, I don&#39;t know the actual reason.</p>
<p dir="ltr">Eric<br>
</p>