diff options
author | ken <ken@FreeBSD.org> | 1998-09-20 00:11:23 +0000 |
---|---|---|
committer | ken <ken@FreeBSD.org> | 1998-09-20 00:11:23 +0000 |
commit | 7c2e7bb8801f9ef8e3e4ab93dc153e7901f3338e (patch) | |
tree | c143714a5306e798bef167a851c06b083fcf45ad /sys/kern/subr_devstat.c | |
parent | 79ff6f224d335b39f52730937b59b8cbc8bf329b (diff) | |
download | FreeBSD-src-7c2e7bb8801f9ef8e3e4ab93dc153e7901f3338e.zip FreeBSD-src-7c2e7bb8801f9ef8e3e4ab93dc153e7901f3338e.tar.gz |
Change the devstat generation number from an int to a long. The int-sized
generation was causing unaligned access faults on the Alpha.
I have incremented the devstat version number, since this is an interface
change. You'll need to recompile libdevstat, systat, iostat, vmstat and
rpc.rstatd along with your kernel.
Partially Submitted by: Andrew Gallatin <gallatin@cs.duke.edu>
Diffstat (limited to 'sys/kern/subr_devstat.c')
-rw-r--r-- | sys/kern/subr_devstat.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/kern/subr_devstat.c b/sys/kern/subr_devstat.c index fe1f832..21c3881 100644 --- a/sys/kern/subr_devstat.c +++ b/sys/kern/subr_devstat.c @@ -25,7 +25,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: subr_devstat.c,v 1.1 1998/09/15 08:16:09 gibbs Exp $ */ #include <sys/param.h> @@ -38,7 +38,7 @@ #include <sys/devicestat.h> static int devstat_num_devs; -static int devstat_generation; +static long devstat_generation; static int devstat_version = DEVSTAT_VERSION; static int devstat_current_devnumber; @@ -212,7 +212,7 @@ sysctl_devstat SYSCTL_HANDLER_ARGS /* * First push out the generation number. */ - error = SYSCTL_OUT(req, &devstat_generation, sizeof(int)); + error = SYSCTL_OUT(req, &devstat_generation, sizeof(long)); /* * Now push out all the devices. @@ -239,7 +239,7 @@ SYSCTL_PROC(_kern_devstat, OID_AUTO, all, CTLFLAG_RD|CTLTYPE_OPAQUE, */ SYSCTL_INT(_kern_devstat, OID_AUTO, numdevs, CTLFLAG_RD, &devstat_num_devs, 0, "Number of devices in the devstat list"); -SYSCTL_INT(_kern_devstat, OID_AUTO, generation, CTLFLAG_RD, &devstat_generation, - 0, "Devstat list generation"); +SYSCTL_LONG(_kern_devstat, OID_AUTO, generation, CTLFLAG_RD, + &devstat_generation, 0, "Devstat list generation"); SYSCTL_INT(_kern_devstat, OID_AUTO, version, CTLFLAG_RD, &devstat_version, 0, "Devstat list version number"); |