lkml.org 
[lkml]   [1996]   [Jul]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: new goo for acct.h struct?
Date
From
> 
> While we are at it: the current sizeof(struct acct) is 52. I think
> it would be nice to round it up to a nice power of 2 (64 or 128).
> Sometimes (after a crash) fsck likes to set the file size based on
> the number of blocks - most likely not a multiple of 52, and it
> confuses the accounting tools. Some padding (just in case we want
> to add something later) would be nice too.
>
> One more idea for accounting: log the device/inode of the executable.
> Sometimes more reliable than the command name (which the user can
> change to anything by creating a link to the program).

I like this idea. I vote for 128 bytes, 'cause if we add
pid, ppid, mem, io and rw, we are over 64 bytes.

>
> Marek
>

calle
--
calle@calle.in-berlin.de


\
 
 \ /
  Last update: 2005-03-22 13:37    [W:0.043 / U:0.840 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site