mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Retire the DIOCGMBR ioctl before anybody starts to use it.
This commit is contained in:
parent
b0fc6220b8
commit
63f253709f
2 changed files with 0 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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])
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue