On Thu, Sep 08, 2011 at 05:24:59PM +0200, Paolo Bonzini wrote: > Map it to bdrv_discard. The server can now expose NBD_FLAG_SEND_TRIM.
Note that discard support without a way to communicate the alignment/size requirements, and without the discard_zeroes_data flag is pretty much useless. Can you work with the upstream developers to make sure it's actually useful?