35c35
< * $FreeBSD: head/sys/geom/geom_disk.c 112367 2003-03-18 08:45:25Z phk $
---
> * $FreeBSD: head/sys/geom/geom_disk.c 112476 2003-03-21 22:05:33Z phk $
55a56
> #include <geom/geom_int.h>
255c256,257
< else if ((dp->d_ioctl != NULL) &&
---
> else if ((g_debugflags & G_F_DISKIOCTL) &&
> (dp->d_ioctl != NULL) &&
< * $FreeBSD: head/sys/geom/geom_disk.c 112367 2003-03-18 08:45:25Z phk $
---
> * $FreeBSD: head/sys/geom/geom_disk.c 112476 2003-03-21 22:05:33Z phk $
55a56
> #include <geom/geom_int.h>
255c256,257
< else if ((dp->d_ioctl != NULL) &&
---
> else if ((g_debugflags & G_F_DISKIOCTL) &&
> (dp->d_ioctl != NULL) &&