Am 23.11.2012 08:38, schrieb Dietmar Maurer: >> In short, the idea is that you can stick filters on top of a >> BlockDriverState, so >> that any read/writes (and possibly more requests, if necessary) are routed >> through the filter before they are passed to the block driver of this BDS. >> Filters would be implemented as BlockDrivers, i.e. you could implement >> .bdrv_co_write() in a filter to intercept all writes to an image. > > I am quite unsure if that make things easier.
At least it would make for a much cleaner design compared to putting code for every feature you can think of into bdrv_co_do_readv/writev(). Kevin