diff options
Diffstat (limited to 'sys/geom/geom_disk.c')
-rw-r--r-- | sys/geom/geom_disk.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/geom/geom_disk.c b/sys/geom/geom_disk.c index 212e073..1f1d362 100644 --- a/sys/geom/geom_disk.c +++ b/sys/geom/geom_disk.c @@ -196,6 +196,14 @@ g_disk_start(struct bio *bp) } else error = ENOIOCTL; break; + case BIO_SETATTR: + if (!strcmp(bp->bio_attribute, "GEOM::ioctl") && + bp->bio_length == sizeof *gio) { + g_call_me(g_disk_ioctl, bp); + return; + } else + error = ENOIOCTL; + break; default: error = EOPNOTSUPP; break; |