[Qemu-devel] [PATCH] qemu-nbd: return ENOSPC for out-of-range writes

2015-05-08 Thread Paolo Bonzini
This ensures that werror=enospc works fine for NBD-backed devices. Recovery can be done through live snapshots even if the NBD server does not support online resizing. Suggested-by: Kevin Wolf kw...@redhat.com Cc: qemu-sta...@nongnu.org Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- nbd.c

Re: [Qemu-devel] [PATCH] qemu-nbd: return ENOSPC for out-of-range writes

2015-05-08 Thread Paolo Bonzini
On 08/05/2015 14:38, Max Reitz wrote: Two things follow: First, our implementation will behave differently from nbd-server. Second, even if we don't care, werror=enospc will only work with qemu-nbd, and not when using nbd-server. I've sent a patch to fix this for nbd-server too. However,

Re: [Qemu-devel] [PATCH] qemu-nbd: return ENOSPC for out-of-range writes

2015-05-08 Thread Max Reitz
On 08.05.2015 12:21, Paolo Bonzini wrote: This ensures that werror=enospc works fine for NBD-backed devices. Recovery can be done through live snapshots even if the NBD server does not support online resizing. Suggested-by: Kevin Wolf kw...@redhat.com Cc: qemu-sta...@nongnu.org Signed-off-by: