summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom.h
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-09-06 08:50:28 +0000
committerphk <phk@FreeBSD.org>2002-09-06 08:50:28 +0000
commit42ca888ae8c4fc973e744c26f157b8f17d46744c (patch)
tree066067ca6695e2c968ad2b897234a1d43d1ac949 /sys/geom/geom.h
parent33a29ee495ec7a6be113d9fd823bdb77e2c5a34c (diff)
downloadFreeBSD-src-42ca888ae8c4fc973e744c26f157b8f17d46744c.zip
FreeBSD-src-42ca888ae8c4fc973e744c26f157b8f17d46744c.tar.gz
Remove "magicspace". It looks good on paper, it doesn't work in practice.
Sponsored by: DARPA & NAI Labs.
Diffstat (limited to 'sys/geom/geom.h')
-rw-r--r--sys/geom/geom.h31
1 files changed, 0 insertions, 31 deletions
diff --git a/sys/geom/geom.h b/sys/geom/geom.h
index 7fcdf3c..3bab33d 100644
--- a/sys/geom/geom.h
+++ b/sys/geom/geom.h
@@ -61,8 +61,6 @@ struct g_event;
struct thread;
struct bio;
struct sbuf;
-struct g_magicspaces;
-
typedef struct g_geom * g_create_geom_t (struct g_class *mp,
struct g_provider *pp, char *name);
@@ -123,7 +121,6 @@ struct g_geom {
void *softc;
struct g_event *event;
unsigned flags;
- struct g_magicspaces *magicspaces;
#define G_GEOM_WITHER 1
};
@@ -174,33 +171,6 @@ struct g_provider {
off_t mediasize;
};
-/*
- * Some methods may implement various "magic spaces", this is reserved
- * or magic areas on the disk, set a side for various and sundry purposes.
- * A good example is the BSD disklabel and boot code on i386 which occupies
- * a total of four magic spaces: boot1, the disklabel, the padding behind
- * the disklabel and boot2. The reason we don't simply tell people to
- * write the appropriate stuff on the underlying device is that (some of)
- * the magic spaces might be real-time modifiable. It is for instance
- * possible to change a disklabel while partitions are open, provided
- * the open partitions do not get trampled in the process.
- */
-
-struct g_magicspace {
- char name[8];
- off_t offset;
- u_int len;
- u_int flags;
-};
-
-struct g_magicspaces {
- uintptr_t geom_id;
- char class[8];
- uint nmagic;
- uint nspace;
- struct g_magicspace *magicspace;
-};
-
/* geom_dump.c */
void g_hexdump(void *ptr, int length);
void g_trace(int level, char *, ...);
@@ -224,7 +194,6 @@ void g_silence(void);
int g_access_abs(struct g_consumer *cp, int read, int write, int exclusive);
int g_access_rel(struct g_consumer *cp, int read, int write, int exclusive);
void g_add_class(struct g_class *mp);
-int g_add_magicspace(struct g_geom *gp, const char *name, off_t start, u_int len, u_int flags);
int g_attach(struct g_consumer *cp, struct g_provider *pp);
struct g_geom *g_create_geomf(char *class, struct g_provider *, char *fmt, ...);
void g_destroy_consumer(struct g_consumer *cp);
OpenPOWER on IntegriCloud