[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]



On 12/20/05, James P. Kinney III <jkinney at localnetsolutions.com> wrote:
>
> On Mon, 2005-12-19 at 23:20 -0500, Chris Ricker wrote:
> > On Mon, 19 Dec 2005, James P. Kinney III wrote:
> >
> > > My /var/log/lastlog shows a file size of 1.2T.
> > >
> > > It would be kind of cool if that were possible. But I don't _have_
> even
> > > 1T of drive space on the machine.
> > >
> > > So a digging around of man pages shows lastlog as _always_ having a
> > > bogus large file size. ls -s shows it as 60(B) while ls -h shows 1.2T
> > >
> > > Does ext(3) have issues with sparse files (which is what lastlog is)?
> >
> > That's more-or-less normal. The apparent size (ls -h) of lastlog will
> vary
> > with architecture, vendor, Unix flavor, UIDs on the system, etc., but it
> > should be sparse and will likely appear huge (for some value of huge ;-)
> >
> > The idea is that lastlog is indexed by uid but is sparse so you don't
> > waste disk space. The huge sparseness you're seeing is because nfsnobody
> > on your OS is uid -1. nfsnobody uid of -1 on x86_64 is 4294967294, and
> > indexing to 4294967294 reserves 1.2 terabytes
>
> Ah HA!! You hit it dead on. Many thanks for the tutoring lesson on
> indexing a filesystem.
>
> >
> > ext3 is fine with it, but your utils (tar, cpio, etc) may or may not do
> > what you want -- treat it as a sparse file, rather than as a really long
> > really compressible string -- depending on rev, vendor, options used,
> etc.
> >
> > later,
> > chris
> > _______________________________________________
> > Ale mailing list
> > Ale at ale.org
&gt; &gt; <a  rel="nofollow" href="http://www.ale.org/mailman/listinfo/ale";>http://www.ale.org/mailman/listinfo/ale</a>
&gt; --
&gt; James P. Kinney III          \Changing the mobile computing world/
&gt; CEO &amp; Director of Engineering \          one Linux user         /
&gt; Local Net Solutions,LLC        \           at a time.          /
&gt; 770-493-8244                    \.___________________________./
&gt; <a  rel="nofollow" href="http://www.localnetsolutions.com";>http://www.localnetsolutions.com</a>
&gt;
&gt; GPG ID: 829C6CA7 James P. Kinney III (M.S. Physics)
&gt; &lt;jkinney at localnetsolutions.com&gt;
&gt; Fingerprint = 3C9E 6366 54FC A3FE BA4D 0659 6190 ADC3 829C 6CA7
&gt;
&gt;
&gt; -----BEGIN PGP SIGNATURE-----
&gt; Version: GnuPG v1.4.1 (GNU/Linux)
&gt;
&gt; iD8DBQBDqCJYYZCtw4KcbKcRAlnXAJ9/4icsKFSoHDhV4KQfvnO/gOhXXgCePYJU
&gt; SDBpM1vZugzv8IF6yZNo0WA=
&gt; =ECEL
&gt; -----END PGP SIGNATURE-----
&gt;
&gt;
&gt; _______________________________________________
&gt; Ale mailing list
&gt; Ale at ale.org
&gt; <a  rel="nofollow" href="http://www.ale.org/mailman/listinfo/ale";>http://www.ale.org/mailman/listinfo/ale</a>
&gt;
&gt;
-------------- next part --------------
An HTML attachment was scrubbed...



</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="00267" href="msg00267.html">[ale] lastlog</a></strong>
<ul><li><em>From:</em> jkinney at localnetsolutions.com (James P. Kinney III)</li></ul></li>
<li><strong><a name="00276" href="msg00276.html">[ale] lastlog</a></strong>
<ul><li><em>From:</em> kaboom at oobleck.net (Chris Ricker)</li></ul></li>
<li><strong><a name="00289" href="msg00289.html">[ale] lastlog</a></strong>
<ul><li><em>From:</em> jkinney at localnetsolutions.com (James P. Kinney III)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00291.html">[ale] old '99 bug still in latest Apache ?!</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00293.html">[ale] .wmv on linux</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00289.html">[ale] lastlog</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00286.html">[ale] lastlog</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00292"><strong>Date</strong></a></li>
<li><a href="threads.html#00292"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>