diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-08-22 10:28:19 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-08-22 10:28:19 +0000 |
| commit | e30b2eda02b89765e1e6a7fe74cdeac4826ff4b5 (patch) | |
| tree | 78ee15bcf7c3bc2cd79c5506967d2c7a9d8833bf | |
| parent | 92b5e86ebfaf8754806df71f34bc0fa9956fa014 (diff) | |
Notes
| -rw-r--r-- | sys/geom/geom_ccd.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/geom/geom_ccd.c b/sys/geom/geom_ccd.c index c2f309ab07572..f296ee37da0cd 100644 --- a/sys/geom/geom_ccd.c +++ b/sys/geom/geom_ccd.c @@ -425,6 +425,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. */ bn = bp->bio_offset / cs->sc_secsize; |
