This patch got lost in my trees: Pass setattr down to device drivers

as well.

Detected by:	scottl
Sponsored by:	DARPA & NAI Labs.
This commit is contained in:
Poul-Henning Kamp 2002-10-05 21:55:31 +00:00
parent 83985c267e
commit 1fc1a1ef2a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=104542

View File

@ -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;