diff --git a/sys/geom/geom_mbr.c b/sys/geom/geom_mbr.c index 68b9fbaa41f..a044ce569b9 100644 --- a/sys/geom/geom_mbr.c +++ b/sys/geom/geom_mbr.c @@ -242,11 +242,6 @@ g_mbr_start(struct bio *bp) gio = (struct g_ioctl *)bp->bio_data; switch (gio->cmd) { - case DIOCGMBR: - /* Return a copy of the disklabel to userland. */ - bcopy(mp->sec0, gio->data, 512); - g_io_deliver(bp, 0); - return (1); case DIOCSMBR: /* * These we cannot do without the topology lock and some diff --git a/sys/sys/diskmbr.h b/sys/sys/diskmbr.h index e2aaafc0e71..ef3147a0029 100644 --- a/sys/sys/diskmbr.h +++ b/sys/sys/diskmbr.h @@ -69,7 +69,6 @@ CTASSERT(sizeof (struct dos_partition) == 16); #define DPSECT(s) ((s) & 0x3f) /* isolate relevant bits of sector */ #define DPCYL(c, s) ((c) + (((s) & 0xc0)<<2)) /* and those that are cylinder */ -#define DIOCGMBR _IOR('M', 128, u_char[512]) #define DIOCSMBR _IOW('M', 129, u_char[512])