Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Jan 1997 01:53:00 +1100 (EST)
From:      proff@suburbia.net
To:        stesin@gu.net (Andrew Stesin)
Cc:        hackers@freebsd.org
Subject:   Re: truss, trace ??
Message-ID:  <19970114145300.14704.qmail@suburbia.net>
In-Reply-To: <Pine.BSF.3.95.970114184300.860c-100000@trifork.gu.net> from Andrew Stesin at "Jan 14, 97 06:43:37 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
> > This (IMHO) would be more "natural", 'cos there shouldn't be any "record" knowledge at that level.
> > 
> 	Agreed.
> 
> Best regards,
> Andrew Stesin
> 
> nic-hdl: ST73-RIPE

You can fake record boundaries a number of ways, presume fixed record size:

	(1) choose the cycle size to be a multiple of the record size
	(2) once the file size has reached the cycle size, truncate by
	    the size of the write. we presume that the write size
	    equals the record size (which it does for struct /var/log/foo)
	    
-Julian <proff@iq.org>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970114145300.14704.qmail>