From eccfe65325c85f3a20466eae11c5ccf65b0a2835 Mon Sep 17 00:00:00 2001
From: phk <phk@FreeBSD.org>
Date: Mon, 11 Mar 2002 08:20:22 +0000
Subject: [PATCH] Augment struct bio for GEOM.

---
 sys/sys/bio.h | 18 ++++++++++++++----
 1 file changed, 14 insertions(+), 4 deletions(-)

diff --git a/sys/sys/bio.h b/sys/sys/bio.h
index c1c515b2285e..7f1328d027fe 100644
--- a/sys/sys/bio.h
+++ b/sys/sys/bio.h
@@ -46,6 +46,8 @@
 
 struct bio;
 struct buf;
+struct g_consumer;
+struct g_provider;
 
 struct iodone_chain {
 	long	ic_prev_flags;
@@ -81,13 +83,21 @@ struct bio {
 	/* XXX: these go away when bio chaining is introduced */
 	daddr_t	bio_pblkno;               /* physical block number */
 	struct	iodone_chain *bio_done_chain;
+	struct bio *bio_linkage;
+	off_t	bio_length;
+	char	*bio_attribute;
+	off_t	bio_completed;
+	struct g_consumer *bio_from;
+	struct g_provider *bio_to;
 };
 
 /* bio_cmd */
-#define BIO_READ	1
-#define BIO_WRITE	2
-#define BIO_DELETE	4
-#define BIO_FORMAT	8
+#define BIO_READ	0x00000001
+#define BIO_WRITE	0x00000002
+#define BIO_DELETE	0x00000004
+#define BIO_FORMAT	0x00000008
+#define BIO_GETATTR	0x00000010
+#define BIO_SETATTR	0x00000020
 #define BIO_CMD1	0x40000000	/* Available for local hacks */
 #define BIO_CMD2	0x80000000	/* Available for local hacks */