Re: BSD Process Accounting under 2.1.85

Trevor Johnson (trevor@jpj.net)
Tue, 10 Feb 1998 22:05:53 -0800 (PST)


> acct.c:307: structure has no member named `io_usage'

This is from Alan Cox' collection of patches
(ftp.uk.linux.org:/pub/linux/incoming/2.1.85-alandiff.gz).

--- linux.vanilla/kernel/acct.c Tue Jan 27 22:00:42 1998
+++ linux/kernel/acct.c Wed Jan 28 21:19:13 1998
@@ -304,7 +304,12 @@
}
vsize = vsize / 1024;
ac.ac_mem = encode_comp_t(vsize);
- ac.ac_io = encode_comp_t(current->io_usage); /* %% */
+ /*
+ * The io_usage patch didnt make it in. Dunno why ??
+ * and acct depends on it. Pick 0 for now - that makes it
+ * obviously a lie ;).
+ */
+ ac.ac_io = 0; /* encode_comp_t(current->io_usage);*/ /* %% */
ac.ac_rw = encode_comp_t(ac.ac_io / 1024);
ac.ac_minflt = encode_comp_t(current->min_flt);
ac.ac_majflt = encode_comp_t(current->maj_flt);
@@ -330,6 +335,6 @@

asmlinkage int sys_acct(const char * filename)
{
- return -ENOSYS;
+ return -ENOPKG;
}
#endif

___
Trevor Johnson

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu