On Fri, Oct 24, 2008 at 06:11:29PM +0300, Semih Gokalp enlightened us:
> yes i did it before.
>
> du /var/log/message
>
> 28 /var/log/faillog
>
> but
>
> ls -al /var/log/
>
> -rw------- 1 root root 137438953440 Oct 24 17:37 faillog
>
> but why it is different ?
>
It is what is called a "sparse file". Google should be able to tell you the
details.
Matt
P.S. Please do not top post.
--
Matt Hyclak
Systems and Operations
Office of Information Technology
Ohio University
(740) 593-1222
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
10-24-2008, 03:26 PM
"Semih Gokalp"
Interesting faillog files.
Thanks all for help.
Thanks again.
2008/10/24 Mogens Kjaer <mk@crc.dk>:
> Semih Gokalp wrote:
>>
>> yes i did it before.
>>
>> du /var/log/message
>>
>> 28 /var/log/faillog
>>
>> but
>>
>> ls -al /var/log/
>>
>> -rw------- 1 root root 137438953440 Oct 24 17:37 faillog
>>
>> but why it is different ?
>
> It is a sparse file. It has holes in it.
> Only a few blocks are actually allocated.
>
> It is not an error.
>
> Mogens
>
> --
> Mogens Kjaer, Carlsberg A/S, Computer Department
> Gamle Carlsberg Vej 10, DK-2500 Valby, Denmark
> Phone: +45 33 27 53 25, Fax: +45 33 27 47 08
> Email: mk@crc.dk Homepage: http://www.crc.dk
> _______________________________________________
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
--
Iyi calismalar.Basarilar...
Semih Gokalp
Istanbul/Turkiye
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
10-27-2008, 07:26 AM
Ralph Angenendt
Interesting faillog files.
Semih Gokalp wrote:
> yes i did it before.
>
> du /var/log/message
>
> 28 /var/log/faillog
>
> but
>
> ls -al /var/log/
>
> -rw------- 1 root root 137438953440 Oct 24 17:37 faillog
>
> but why it is different ?
As already has been said: It's a sparse file with holes in it. As to why
it has to be that big: Space is reserved for every user id which can
possibly log in, depending on the *highest* uid which has ever logged in
onto your system. You are on a 64bit system (I'm good, ain't I?) and you
or some process has used a login shell with the user nfsnobody, which is
UID_MAX - 1 on most, if not all, unix systems.
And that one has the id 4294967294, which means that there is some space
reserved for all the other 4294967293 users which are below that uid.
Cheers,
Ralph
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos