Re: Accounting changes




On Thu, 19 Apr 2007, Robert Watson wrote:

If we're willing to assume architectures can only read their own accounting files (the status quo), the above argument doesn't really make sense. You end up with a series of versions of "struct acct", and that code is architecture-neutral. Thinking about it more, I'm not sure a per file header is even required or desired (as I had previously suggested), simply a per-record versioning scheme, allowing a reboot onto a new kernel to continue to write to the existing accounting data. Read the first 16 bytes, if the first byte is non-0 then it's the original "struct acct" layout, and otherwise the second byte is the version number to use. Or in the interests of forward compatibility, include a length parameter in another 16 bytes so you can skip over records if necessary in order to allow the kernel to move back and forward across file versions if there's a problem after the upgrade.

s/16 bytes/16 bits/ was intended in the above. :-)

Robert N M Watson
Computer Laboratory
University of Cambridge
_______________________________________________
freebsd-arch@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "freebsd-arch-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: Tools for FreeBSD development
    ... On 12/3/06, Robert Watson wrote: ... I'll give pxeboot a shot tomorrow. ... what is the best way to debug kernel ...
    (freebsd-hackers)
  • Re: kernel modules wont load
    ... Robert Watson wrote: ... That came from both the oss logging file and dmesg. ... understand what "depends on kernel" means, could I get a hint on ... Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org ...
    (freebsd-current)
  • Re: FreeBSD 6.3 or FreeBSD 7.0
    ... On Thu, 15 Nov 2007, Robert Watson wrote: ... While I might hesitate to recommend ZFS in less experimental settings, I feel that the 7.0 kernel will prove to be one of our most stable, not to mention most performant, .0 releases to date. ... servers or servers that fail over -- we won't be able to fix problems we don't hear about, so if you can help us exercise 7.0 now, we can get these things fixed for 7.0 rather than for 7.1 :-). ... Even if you're just booting up and installing on a spare box and banging it with your web load and mysql load, that sort of testing is invaluable. ...
    (freebsd-stable)
  • Re: 6.0R GENERIC makeoptions DEBUG=-g [Slightly OT]
    ... Robert Watson wrote: ... > accessible for the GENERIC kernel shipped with the release. ... > no longer need to ask end-users to build a kernel with debugging ... To unsubscribe, ...
    (freebsd-questions)