Re: [Qemu-devel] [PATCH] nbd: Don't trim unrequested bytes

2016-05-25 Thread Eric Blake
On 05/25/2016 02:31 AM, Paolo Bonzini wrote: > > > On 25/05/2016 06:37, Eric Blake wrote: >> Similar to commit df7b97ff, we are mishandling clients that >> give an unaligned NBD_CMD_TRIM request, and potentially >> trimming bytes that occur before their request; which in turn >> can cause potenti

Re: [Qemu-devel] [PATCH] nbd: Don't trim unrequested bytes

2016-05-25 Thread Paolo Bonzini
On 25/05/2016 06:37, Eric Blake wrote: > Similar to commit df7b97ff, we are mishandling clients that > give an unaligned NBD_CMD_TRIM request, and potentially > trimming bytes that occur before their request; which in turn > can cause potential unintended data loss (unlikely in > practice, since