Subject: Re: Why disk capacity check for the directory where accounting file
To: Chris G. Demetriou <firstname.lastname@example.org>
From: enami tsugutomo <email@example.com>
Date: 06/22/1997 20:56:47
"Chris G. Demetriou" <firstname.lastname@example.org> writes:
> That's not particularly efficient ("process exists, it's time to
> context switch to the logger!"). It also has a much greater potential
> to lose accounting records.
I'm almost convinced.
Then, i'm writing a code to do disk capacity check inside of kernel
process rather than during clock interrupt.
It seems to be working, except one problem. Write to accounting file
via nfs causes EACCESS if process is owned by other than root (if I
chaned the mode of the file to 0666, then write success :-).
Since kernel is passing a process's user credential when writing the
file, then, I'm now wondering why write successes in case of the file
is on the ffs...