summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-04-03 19:37:40 +0000
committerphk <phk@FreeBSD.org>2003-04-03 19:37:40 +0000
commitffdec08c2c26f9d96e5887f5db3e643fd2b77817 (patch)
tree2d158f756d3f06b906c2aedd1626be1405f86cd5 /sys
parent8207e9e353dbeb83f80376f31b4c525f09eae776 (diff)
downloadFreeBSD-src-ffdec08c2c26f9d96e5887f5db3e643fd2b77817.zip
FreeBSD-src-ffdec08c2c26f9d96e5887f5db3e643fd2b77817.tar.gz
Retire the DIOCGMBR ioctl before anybody starts to use it.
Diffstat (limited to 'sys')
-rw-r--r--sys/geom/geom_mbr.c5
-rw-r--r--sys/sys/diskmbr.h1
2 files changed, 0 insertions, 6 deletions
diff --git a/sys/geom/geom_mbr.c b/sys/geom/geom_mbr.c
index 68b9fba..a044ce5 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 e2aaafc..ef3147a 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])
OpenPOWER on IntegriCloud