Block all GETATTR calls hitting the CCD, we wouldn't know which child
device should handle them. This prevents for instance GEOM::ioctl requests from reaching a lower BSDlabel node, which ps@ found would confuse newfs(8).
This commit is contained in:
parent
92b5e86ebf
commit
e30b2eda02
@ -424,6 +424,16 @@ g_ccd_start(struct bio *bp)
|
||||
|
||||
cs = bp->bio_to->geom->softc;
|
||||
|
||||
/*
|
||||
* Block all GETATTR requests, we wouldn't know which of our
|
||||
* subdevices we should ship it off to.
|
||||
* XXX: this may not be the right policy.
|
||||
*/
|
||||
if(bp->bio_cmd == BIO_GETATTR) {
|
||||
g_io_deliver(bp, EINVAL);
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
* Translate the partition-relative block number to an absolute.
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user