diff options
author | marcel <marcel@FreeBSD.org> | 2003-05-01 01:51:28 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2003-05-01 01:51:28 +0000 |
commit | d39162a421d8ef7acc51718e21c1b987cb529aeb (patch) | |
tree | f9a77125dd1acc366bcdae5526fc18b5c1d979f3 /sys/geom | |
parent | beb0ffad0fc5e8bbe9e24829ab973114499c9986 (diff) | |
download | FreeBSD-src-d39162a421d8ef7acc51718e21c1b987cb529aeb.zip FreeBSD-src-d39162a421d8ef7acc51718e21c1b987cb529aeb.tar.gz |
Don't emulate a MBR by handling the MBR::type attribute. It is
not needed at all. The BSD class will attach to a GPT class without
it.
Diffstat (limited to 'sys/geom')
-rw-r--r-- | sys/geom/geom_gpt.c | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/sys/geom/geom_gpt.c b/sys/geom/geom_gpt.c index 05591a2..0783ecb 100644 --- a/sys/geom/geom_gpt.c +++ b/sys/geom/geom_gpt.c @@ -79,28 +79,8 @@ is_gpt_hdr(struct gpt_hdr *hdr) static int g_gpt_start(struct bio *bp) { - struct uuid freebsd = GPT_ENT_TYPE_FREEBSD; - struct g_provider *pp = bp->bio_to; - struct g_geom *gp = pp->geom; - struct g_slicer *gsp = gp->softc; - struct g_gpt_softc *gs = gsp->softc; - u_int type; - - if (bp->bio_cmd != BIO_GETATTR) - return (0); - /* - * XXX: this is bogus. The BSD class has a strong dependency on - * the MBR/MBREXT class, because it asks for an attribute that's - * specific to the MBR/MBREXT class and the value of the attribute - * is just as specific to the MBR class. In an extensible scheme - * a geom would ask another geom if it could possible accomodate a - * class and the answer should be yes or no. Now we're forced to - * emulate a MBR class :-/ - */ - type = (memcmp(&gs->part[pp->index]->ent_type, &freebsd, - sizeof(freebsd))) ? 0 : 165; - return ((g_handleattr_int(bp, "MBR::type", type)) ? 1 : 0); + return (0); } static void |