*BSD News Article 27373


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!sgiblab!sdd.hp.com!decwrl!apple!kaleida.com!conklin
From: conklin@kaleida.com (J.T. Conklin)
Newsgroups: comp.os.386bsd.questions
Subject: Re: FreeBSD: /var/log/lastlog?
Date: 14 Feb 1994 18:08:58 GMT
Organization: Winning Strategies, Inc.
Lines: 15
Message-ID: <CONKLIN.94Feb14100859@ngai.kaleida.com>
References: <CL0q2s.G6@jester.gun.de> <2jfp0a$aop@pdq.coe.montana.edu>
	<1994Feb11.235107.16781@emba.uvm.edu> <CL60rF.53G@jester.GUN.de>
Reply-To: conklin@kaleida.com
NNTP-Posting-Host: ngai.kaleida.com
In-reply-to: michael@jester.GUN.de's message of Sun, 13 Feb 1994 13:42:36 GMT

In article <CL60rF.53G@jester.GUN.de> michael@jester.GUN.de (Michael Gerhards) writes:
In article <1994Feb11.235107.16781@emba.uvm.edu>, Garrett Wollman wrote:

Garrett> You can certainly truncate the file if you ant, but it should
Garrett> never contain more than one record per user on the system,
Garrett> and therefore shouldn't require truncation.

Michael> Hm, then something is wrong with it. My /var/adm/lastlog was
Michael> ~ 960 KB big. And my system has ~ 10 users !

/var/adm/lastlog is a sparse file -- it only has one record per user,
but they are at fixed offsets based on user-id.  Only disk blocks with
actual data are allocated, the rest are "holes".

	--jtc