In reverence of the 3rd X11 development rule:
3.The only thing worse than generalizing from one example is generalizing from no examples at all. Remove the fwcylinders attribute before anybody gets the idea that we alone have squared the circle. Sponsored by: DARPA & NAI Labs.
This commit is contained in:
parent
b2401764d7
commit
28a8eb54ff
@ -262,9 +262,6 @@ g_dev_ioctl(dev_t dev, u_long cmd, caddr_t data, int fflag, struct thread *td)
|
||||
case DIOCGFWHEADS:
|
||||
error = g_io_getattr("GEOM::fwheads", cp, &i, data);
|
||||
break;
|
||||
case DIOCGFWCYLINDERS:
|
||||
error = g_io_getattr("GEOM::fwcylinders", cp, &i, data);
|
||||
break;
|
||||
default:
|
||||
gio = g_malloc(sizeof *gio, M_WAITOK);
|
||||
gio->cmd = cmd;
|
||||
|
@ -143,9 +143,6 @@ g_disk_start(struct bio *bp)
|
||||
else if (g_haveattr_int(bp, "GEOM::fwheads",
|
||||
dp->d_label.d_ntracks))
|
||||
break;
|
||||
else if (g_haveattr_int(bp, "GEOM::fwcylinders",
|
||||
dp->d_label.d_ncylinders))
|
||||
break;
|
||||
else if (g_haveattr_off_t(bp, "GEOM::mediasize",
|
||||
dp->d_label.d_secsize * (off_t)dp->d_label.d_secperunit))
|
||||
break;
|
||||
|
@ -358,7 +358,6 @@ CTASSERT(sizeof (struct dos_partition) == 16);
|
||||
#define DIOCGMEDIASIZE _IOR('d', 129, off_t) /* Get media size in bytes */
|
||||
#define DIOCGFWSECTORS _IOR('d', 130, u_int) /* Get firmware sectorcount */
|
||||
#define DIOCGFWHEADS _IOR('d', 131, u_int) /* Get firmware headcount */
|
||||
#define DIOCGFWCYLINDERS _IOR('d', 132, u_int) /* Get firmware cyl'scount */
|
||||
#define DIOCGKERNELDUMP _IOW('d', 133, u_int) /* Set/Clear kernel dumps */
|
||||
|
||||
#ifdef __alpha__
|
||||
|
@ -358,7 +358,6 @@ CTASSERT(sizeof (struct dos_partition) == 16);
|
||||
#define DIOCGMEDIASIZE _IOR('d', 129, off_t) /* Get media size in bytes */
|
||||
#define DIOCGFWSECTORS _IOR('d', 130, u_int) /* Get firmware sectorcount */
|
||||
#define DIOCGFWHEADS _IOR('d', 131, u_int) /* Get firmware headcount */
|
||||
#define DIOCGFWCYLINDERS _IOR('d', 132, u_int) /* Get firmware cyl'scount */
|
||||
#define DIOCGKERNELDUMP _IOW('d', 133, u_int) /* Set/Clear kernel dumps */
|
||||
|
||||
#ifdef __alpha__
|
||||
|
@ -358,7 +358,6 @@ CTASSERT(sizeof (struct dos_partition) == 16);
|
||||
#define DIOCGMEDIASIZE _IOR('d', 129, off_t) /* Get media size in bytes */
|
||||
#define DIOCGFWSECTORS _IOR('d', 130, u_int) /* Get firmware sectorcount */
|
||||
#define DIOCGFWHEADS _IOR('d', 131, u_int) /* Get firmware headcount */
|
||||
#define DIOCGFWCYLINDERS _IOR('d', 132, u_int) /* Get firmware cyl'scount */
|
||||
#define DIOCGKERNELDUMP _IOW('d', 133, u_int) /* Set/Clear kernel dumps */
|
||||
|
||||
#ifdef __alpha__
|
||||
|
Loading…
x
Reference in New Issue
Block a user