Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/raidframe - move a bunch of function prototypes to r...
details: https://anonhg.NetBSD.org/src/rev/bc2ac28133db
branches: trunk
changeset: 480294:bc2ac28133db
user: oster <oster%NetBSD.org@localhost>
date: Sun Jan 09 01:29:27 2000 +0000
description:
- move a bunch of function prototypes to rf_kintf.h
- general cleanup of a number of prototypes that were scattered around.
diffstat:
sys/dev/raidframe/rf_copyback.c | 16 ++++++----------
sys/dev/raidframe/rf_disks.c | 6 ++----
sys/dev/raidframe/rf_driver.c | 9 ++-------
sys/dev/raidframe/rf_kintf.h | 9 ++++++++-
sys/dev/raidframe/rf_netbsdkintf.c | 12 ++----------
sys/dev/raidframe/rf_reconstruct.c | 7 +------
6 files changed, 21 insertions(+), 38 deletions(-)
diffs (193 lines):
diff -r 8f04a1b218ba -r bc2ac28133db sys/dev/raidframe/rf_copyback.c
--- a/sys/dev/raidframe/rf_copyback.c Sun Jan 09 01:12:05 2000 +0000
+++ b/sys/dev/raidframe/rf_copyback.c Sun Jan 09 01:29:27 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_copyback.c,v 1.11 2000/01/07 03:40:56 oster Exp $ */
+/* $NetBSD: rf_copyback.c,v 1.12 2000/01/09 01:29:28 oster Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
* All rights reserved.
@@ -51,6 +51,7 @@
#include "rf_decluster.h"
#include "rf_driver.h"
#include "rf_shutdown.h"
+#include "rf_kintf.h"
#define RF_COPYBACK_DATA 0
#define RF_COPYBACK_PARITY 1
@@ -59,10 +60,10 @@
static int rf_CopybackReadDoneProc(RF_CopybackDesc_t * desc, int status);
static int rf_CopybackWriteDoneProc(RF_CopybackDesc_t * desc, int status);
-static void
-rf_CopybackOne(RF_CopybackDesc_t * desc, int typ,
- RF_RaidAddr_t addr, RF_RowCol_t testRow, RF_RowCol_t testCol,
- RF_SectorNum_t testOffs);
+static void rf_CopybackOne(RF_CopybackDesc_t * desc, int typ,
+ RF_RaidAddr_t addr, RF_RowCol_t testRow,
+ RF_RowCol_t testCol,
+ RF_SectorNum_t testOffs);
static void rf_CopybackComplete(RF_CopybackDesc_t * desc, int status);
int
@@ -80,11 +81,6 @@
#include <sys/fcntl.h>
#include <sys/vnode.h>
-/* XXX these should be in a .h file somewhere */
-int raidlookup __P((char *, struct proc *, struct vnode **));
-int raidwrite_component_label(dev_t, struct vnode *, RF_ComponentLabel_t *);
-int raidread_component_label(dev_t, struct vnode *, RF_ComponentLabel_t *);
-
/* do a complete copyback */
void
rf_CopybackReconstructedData(raidPtr)
diff -r 8f04a1b218ba -r bc2ac28133db sys/dev/raidframe/rf_disks.c
--- a/sys/dev/raidframe/rf_disks.c Sun Jan 09 01:12:05 2000 +0000
+++ b/sys/dev/raidframe/rf_disks.c Sun Jan 09 01:29:27 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_disks.c,v 1.13 1999/08/14 03:10:03 oster Exp $ */
+/* $NetBSD: rf_disks.c,v 1.14 2000/01/09 01:29:28 oster Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -73,6 +73,7 @@
#include "rf_configure.h"
#include "rf_general.h"
#include "rf_options.h"
+#include "rf_kintf.h"
#include <sys/types.h>
#include <sys/param.h>
@@ -83,9 +84,6 @@
#include <sys/vnode.h>
/* XXX these should be in a header file somewhere */
-int raidlookup __P((char *, struct proc * p, struct vnode **));
-int raidwrite_component_label(dev_t, struct vnode *, RF_ComponentLabel_t *);
-int raidread_component_label(dev_t, struct vnode *, RF_ComponentLabel_t *);
void rf_UnconfigureVnodes( RF_Raid_t * );
int rf_CheckLabels( RF_Raid_t *, RF_Config_t *);
diff -r 8f04a1b218ba -r bc2ac28133db sys/dev/raidframe/rf_driver.c
--- a/sys/dev/raidframe/rf_driver.c Sun Jan 09 01:12:05 2000 +0000
+++ b/sys/dev/raidframe/rf_driver.c Sun Jan 09 01:29:27 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_driver.c,v 1.23 2000/01/09 00:00:18 oster Exp $ */
+/* $NetBSD: rf_driver.c,v 1.24 2000/01/09 01:29:28 oster Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -115,6 +115,7 @@
#include "rf_options.h"
#include "rf_shutdown.h"
#include "rf_cpuutil.h"
+#include "rf_kintf.h"
#include <sys/buf.h>
@@ -139,12 +140,6 @@
static int rf_ConfigureRDFreeList(RF_ShutdownList_t **);
void rf_UnconfigureVnodes( RF_Raid_t * );
-/* XXX move these to their own .h file! */
-int raidwrite_component_label(dev_t, struct vnode *, RF_ComponentLabel_t *);
-int raidread_component_label(dev_t, struct vnode *, RF_ComponentLabel_t *);
-int raidmarkclean(dev_t dev, struct vnode *b_vp,int);
-void rf_update_component_labels( RF_Raid_t *);
-
RF_DECLARE_MUTEX(rf_printf_mutex) /* debug only: avoids interleaved
* printfs by different stripes */
diff -r 8f04a1b218ba -r bc2ac28133db sys/dev/raidframe/rf_kintf.h
--- a/sys/dev/raidframe/rf_kintf.h Sun Jan 09 01:12:05 2000 +0000
+++ b/sys/dev/raidframe/rf_kintf.h Sun Jan 09 01:29:27 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_kintf.h,v 1.6 2000/01/05 02:57:29 oster Exp $ */
+/* $NetBSD: rf_kintf.h,v 1.7 2000/01/09 01:29:27 oster Exp $ */
/*
* rf_kintf.h
*
@@ -41,4 +41,11 @@
void raidstart(RF_Raid_t * raidPtr);
int rf_DispatchKernelIO(RF_DiskQueue_t * queue, RF_DiskQueueData_t * req);
+int raidwrite_component_label(dev_t, struct vnode *, RF_ComponentLabel_t *);
+int raidread_component_label(dev_t, struct vnode *, RF_ComponentLabel_t *);
+void rf_update_component_labels( RF_Raid_t *);
+int raidlookup __P((char *, struct proc *, struct vnode **));
+int raidmarkclean(dev_t dev, struct vnode *b_vp, int);
+int raidmarkdirty(dev_t dev, struct vnode *b_vp, int);
+
#endif /* _RF__RF_KINTF_H_ */
diff -r 8f04a1b218ba -r bc2ac28133db sys/dev/raidframe/rf_netbsdkintf.c
--- a/sys/dev/raidframe/rf_netbsdkintf.c Sun Jan 09 01:12:05 2000 +0000
+++ b/sys/dev/raidframe/rf_netbsdkintf.c Sun Jan 09 01:29:27 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_netbsdkintf.c,v 1.43 2000/01/08 02:04:06 oster Exp $ */
+/* $NetBSD: rf_netbsdkintf.c,v 1.44 2000/01/09 01:29:27 oster Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -137,6 +137,7 @@
#include "raid.h"
#include "rf_raid.h"
#include "rf_raidframe.h"
+#include "rf_copyback.h"
#include "rf_dag.h"
#include "rf_dagflags.h"
#include "rf_diskqueue.h"
@@ -187,14 +188,9 @@
void (*cbFunc) (struct buf *), void *cbArg,
int logBytesPerSector, struct proc * b_proc);
-int raidmarkclean(dev_t dev, struct vnode *b_vp, int);
-int raidmarkdirty(dev_t dev, struct vnode *b_vp, int);
-
void raidattach __P((int));
int raidsize __P((dev_t));
-void rf_DiskIOComplete(RF_DiskQueue_t *, RF_DiskQueueData_t *, int);
-void rf_CopybackReconstructedData(RF_Raid_t * raidPtr);
static int raidinit __P((dev_t, RF_Raid_t *, int));
int raidopen __P((dev_t, int, int, struct proc *));
@@ -205,9 +201,6 @@
void raidstrategy __P((struct buf *));
int raiddump __P((dev_t, daddr_t, caddr_t, size_t));
-int raidwrite_component_label(dev_t, struct vnode *, RF_ComponentLabel_t *);
-int raidread_component_label(dev_t, struct vnode *, RF_ComponentLabel_t *);
-void rf_update_component_labels( RF_Raid_t *);
/*
* Pilfered from ccd.c
*/
@@ -280,7 +273,6 @@
static int raidlock __P((struct raid_softc *));
static void raidunlock __P((struct raid_softc *));
-int raidlookup __P((char *, struct proc * p, struct vnode **));
static void rf_markalldirty __P((RF_Raid_t *));
diff -r 8f04a1b218ba -r bc2ac28133db sys/dev/raidframe/rf_reconstruct.c
--- a/sys/dev/raidframe/rf_reconstruct.c Sun Jan 09 01:12:05 2000 +0000
+++ b/sys/dev/raidframe/rf_reconstruct.c Sun Jan 09 01:29:27 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_reconstruct.c,v 1.11 2000/01/09 01:12:05 oster Exp $ */
+/* $NetBSD: rf_reconstruct.c,v 1.12 2000/01/09 01:29:28 oster Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
* All rights reserved.
@@ -125,11 +125,6 @@
static void rf_ShutdownReconstruction(void *);
-/* XXX these should be in a .h file somewhere */
-int raidlookup __P((char *, struct proc *, struct vnode **));
-int raidwrite_component_label(dev_t, struct vnode *, RF_ComponentLabel_t *);
-int raidread_component_label(dev_t, struct vnode *, RF_ComponentLabel_t *);
-
struct RF_ReconDoneProc_s {
void (*proc) (RF_Raid_t *, void *);
void *arg;
Home |
Main Index |
Thread Index |
Old Index