Date: Wed, 15 Jan 1997 10:40:38 +1100 (EST) From: proff@suburbia.net To: terry@lambert.org (Terry Lambert) Cc: hackers@freebsd.org Subject: Re: truss, trace ?? Message-ID: <19970114234038.5396.qmail@suburbia.net> In-Reply-To: <199701141646.JAA29888@phaeton.artisoft.com> from Terry Lambert at "Jan 14, 97 09:46:17 am"
next in thread | previous in thread | raw e-mail | index | archive | help
> > "Natural" for text files, maybe. > > For the wtmp file, it's not so natural... it's wierd, even, since you > can't resync to a valid record boundry without sync data built into > the data format. > > For text files, the sync data can be "after the first \n", since it > is a variable length record format with "\n" record seperators, but > how do you resync wtmp? > > > Terry Lambert It's quite easy actually. There are two ways: (a) always truncate by the size of the last write. (b) define the cycle period to be a multiple of the record size. Cheers, Julian <proff@iq.org>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970114234038.5396.qmail>