Re: [PATCH] 2.6.x BSD Process Accounting w/High UID

From: Tim Schmielau
Date: Thu Mar 04 2004 - 16:55:38 EST


> > Do the userspace commands that parse the acct files
> > know how to deal with this format change ?
>
> Well, that's the ugly part. I had to munge glibc's sys/acct.h to reflect the
> same changes as well to get the gnu tools to read the file correctly (the
> accounting file does need to be started fresh with this struct, btw).

In a first step, we could map all high uids onto one 'reserved' uid to
avoid requiring new userspace tools.
This is along the lines what I did when jiffies became 64 bits - just map
larger times onto the maximum time representable with 32 bits.

We didn't even exploit the fact that 34 bit times would be representable
in the current format, because existing userspace tools would probably
break then.
At the time I did that change, it seemed to be common consensus that too
few people cared about accurate BSD accounting to require new userspace
tools.

btw: if you actually push an incompatible change, could we do something
about large times as well?

Tim
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/