From 63f253709ff5bf95d5fc1745620c2d4e967ec97b Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Thu, 3 Apr 2003 19:37:40 +0000 Subject: [PATCH] Retire the DIOCGMBR ioctl before anybody starts to use it. --- sys/geom/geom_mbr.c | 5 ----- sys/sys/diskmbr.h | 1 - 2 files changed, 6 deletions(-) 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])