> We could go in a different direction and export flag > 'has_zero_init' which will report that the storage is > initialized with all zeroes at the moment. In this > case mirroring code will not fall into this > branch.
Why don't you add the zero_init flag to QEMU's NBD driver instead? Thanks, Paolo