diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 2002-10-05 21:55:31 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2002-10-05 21:55:31 +0000 |
commit | 1fc1a1ef2a9e9e6fb8cf33b63955c6b6fe4821da (patch) | |
tree | 6ddb776649578adc736e686bcfc2a51382217d14 /sys/geom/geom_disk.c | |
parent | 83985c267e969de293fa632b1af82e72a8a8bbea (diff) | |
download | src-1fc1a1ef2a9e9e6fb8cf33b63955c6b6fe4821da.tar.gz src-1fc1a1ef2a9e9e6fb8cf33b63955c6b6fe4821da.zip |
This patch got lost in my trees: Pass setattr down to device drivers
as well.
Detected by: scottl
Sponsored by: DARPA & NAI Labs.
Notes
Notes:
svn path=/head/; revision=104542
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 212e073fc791..1f1d362f51e4 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; |