summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_dump.c
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_dump.c
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_dump.c')
-rw-r--r--sys/geom/geom_dump.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/sys/geom/geom_dump.c b/sys/geom/geom_dump.c
index dcaee02..619e0ed 100644
--- a/sys/geom/geom_dump.c
+++ b/sys/geom/geom_dump.c
@@ -157,30 +157,11 @@ g_conf_geom(struct sbuf *sb, struct g_geom *gp, struct g_provider *pp, struct g_
{
struct g_consumer *cp2;
struct g_provider *pp2;
- struct g_magicspace *gsp;
- u_int u;
sbuf_printf(sb, " <geom id=\"%p\">\n", gp);
sbuf_printf(sb, " <class ref=\"%p\"/>\n", gp->class);
sbuf_printf(sb, " <name>%s</name>\n", gp->name);
sbuf_printf(sb, " <rank>%d</rank>\n", gp->rank);
- if (gp->magicspaces) {
- for (u = 0; u < gp->magicspaces->nmagic; u++) {
- gsp = &gp->magicspaces->magicspace[u];
- if (gsp->len == 0 || gsp->name == NULL)
- continue;
- sbuf_printf(sb, " <magicspace>\n");
- sbuf_printf(sb, " <name>%.8s</name>\n",
- gsp->name);
- sbuf_printf(sb, " <offset>%lld</offset>\n",
- (long long)gsp->offset);
- sbuf_printf(sb, " <length>%u</length>\n",
- gsp->len);
- sbuf_printf(sb, " <flags>%u</flags>\n",
- gsp->flags);
- sbuf_printf(sb, " </magicspace>\n");
- }
- }
if (gp->dumpconf) {
sbuf_printf(sb, " <config>\n");
gp->dumpconf(sb, "\t", gp, NULL, NULL);
OpenPOWER on IntegriCloud