summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorgrog <grog@FreeBSD.org>2000-02-29 06:09:41 +0000
committergrog <grog@FreeBSD.org>2000-02-29 06:09:41 +0000
commit8769550ced118348dd3c88ebd3c74b242079a69b (patch)
treef82739531a5092c168365c798bb68aa9c8783a5d /sys
parent5b355f828cdb498dedbbac54ebf46e5f24216263 (diff)
downloadFreeBSD-src-8769550ced118348dd3c88ebd3c74b242079a69b.zip
FreeBSD-src-8769550ced118348dd3c88ebd3c74b242079a69b.tar.gz
Remove declarations of read_drive and write_drive and replace them
with macros. Add declaration for parityrebuild, a new function. Approved-by: jkh
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/vinum/vinumext.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/dev/vinum/vinumext.h b/sys/dev/vinum/vinumext.h
index d144375..5d87ad4 100644
--- a/sys/dev/vinum/vinumext.h
+++ b/sys/dev/vinum/vinumext.h
@@ -45,6 +45,10 @@ extern struct _vinum_conf vinum_conf; /* configuration information */
extern int debug; /* debug flags */
#endif
+/* Physical read and write drive */
+#define read_drive(a, b, c, d) driveio (a, b, c, d, B_READ)
+#define write_drive(a, b, c, d) driveio (a, b, c, d, B_WRITE)
+
#define CHECKALLOC(ptr, msg) \
if (ptr == NULL) \
{ \
@@ -118,8 +122,6 @@ int init_drive(struct drive *, int);
void throw_rude_remark(int, char *,...);
/* XXX die die */
-int read_drive(struct drive *drive, void *buf, size_t length, off_t offset);
-int write_drive(struct drive *drive, void *buf, size_t length, off_t offset);
void format_config(char *config, int len);
void checkkernel(char *op);
void free_drive(struct drive *drive);
@@ -188,6 +190,7 @@ void setstate_by_force(struct vinum_ioctl_msg *msg);
void vinum_label(int);
int vinum_writedisklabel(struct volume *, struct disklabel *);
int initsd(int, int);
+struct buf *parityrebuild(struct plex *, u_int64_t, int, int, struct rangelock **);
enum requeststatus sddownstate(struct request *rq);
int restart_plex(int plexno);
@@ -240,6 +243,7 @@ int vinum_finddaemon(void);
int vinum_setdaemonopts(int);
extern struct daemonq *daemonq; /* daemon's work queue */
extern struct daemonq *dqend; /* and the end of the queue */
+
/* Local Variables: */
/* fill-column: 50 */
/* End: */
OpenPOWER on IntegriCloud