diff options
author | Peter Galbavy <peter@cvs.openbsd.org> | 2000-01-07 14:50:24 +0000 |
---|---|---|
committer | Peter Galbavy <peter@cvs.openbsd.org> | 2000-01-07 14:50:24 +0000 |
commit | d7921cbd0ec1beed703dd2b35ce6236d09fa0f12 (patch) | |
tree | 7193c433c334b83730ba6636e8b5e2007148d29f /sys/dev/raidframe/rf_utils.h | |
parent | 67a89310ea3a36e9b3d504382073e820f07a019a (diff) |
sync with work by Greg Oster on NetBSD
Please note: This update has *only* been tested on i386 with IDE
disks. Could someone with a spare box please make sure all is OK with
SCSI and maybe other arches ? sparc testing will follow locally.
* remove rf_sys.h
* many changes to make it more stable
* some performance increases
* All raid threads now get their own kernel process and the calling
raidctl(8) program will show status progress through a meter.
* In theory FFS_SOFTUPDATES and RAIDframe will now work together - NOT
TESTED YET
See http://www.cs.usask.ca/staff/oster/raid.html
This updates include Greg's changes to Jan 4th 2000.
TODO:
* some odd behaviour when running raictl -c on an already config'ed
raid set - problem founf, fix being done
* progress meter is in raidctl(8) - seperate commit, but could do with
sync'ing with OpenBSD ftp version
Diffstat (limited to 'sys/dev/raidframe/rf_utils.h')
-rw-r--r-- | sys/dev/raidframe/rf_utils.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/dev/raidframe/rf_utils.h b/sys/dev/raidframe/rf_utils.h index 1e5a9d3e872..622e2061b45 100644 --- a/sys/dev/raidframe/rf_utils.h +++ b/sys/dev/raidframe/rf_utils.h @@ -1,5 +1,5 @@ -/* $OpenBSD: rf_utils.h,v 1.3 1999/08/03 13:56:38 peter Exp $ */ -/* $NetBSD: rf_utils.h,v 1.3 1999/02/05 00:06:18 oster Exp $ */ +/* $OpenBSD: rf_utils.h,v 1.4 2000/01/07 14:50:23 peter Exp $ */ +/* $NetBSD: rf_utils.h,v 1.4 1999/08/13 03:26:55 oster Exp $ */ /* * Copyright (c) 1995 Carnegie-Mellon University. * All rights reserved. @@ -52,7 +52,9 @@ int rf_atoi(char *p); int rf_htoi(char *p); #define RF_USEC_PER_SEC 1000000 -#define RF_TIMEVAL_TO_US(_t_) (((_t_).tv_sec) * RF_USEC_PER_SEC + (_t_).tv_usec) +#define RF_TIMEVAL_TO_US(_t_) (((_t_).tv_sec) \ + * RF_USEC_PER_SEC + (_t_).tv_usec) + #define RF_TIMEVAL_DIFF(_start_,_end_,_diff_) { \ if ((_end_)->tv_usec < (_start_)->tv_usec) { \ (_diff_)->tv_usec = ((_end_)->tv_usec + RF_USEC_PER_SEC) \ |