diff options
author | phk <phk@FreeBSD.org> | 2002-10-05 21:55:31 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-10-05 21:55:31 +0000 |
commit | 45eae5f187bca0b6e41ebd2d462e4bc3b0450b27 (patch) | |
tree | 6ddb776649578adc736e686bcfc2a51382217d14 | |
parent | 74ec128a1cc11d5f9f7620636ba845fe578a57fc (diff) | |
download | FreeBSD-src-45eae5f187bca0b6e41ebd2d462e4bc3b0450b27.zip FreeBSD-src-45eae5f187bca0b6e41ebd2d462e4bc3b0450b27.tar.gz |
This patch got lost in my trees: Pass setattr down to device drivers
as well.
Detected by: scottl
Sponsored by: DARPA & NAI Labs.
-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; |