Re: [Qemu-devel] [PATCH] block-backend: allow flush on devices with open tray

2016-06-15 Thread Kevin Wolf
Am 14.06.2016 um 18:13 hat Max Reitz geschrieben: > On 14.06.2016 17:54, John Snow wrote: > > > > > > On 06/14/2016 09:19 AM, Max Reitz wrote: > >> On 10.06.2016 23:59, John Snow wrote: > >>> If a device still has an attached BDS because the medium has not yet > >>> been removed, we will be unabl

Re: [Qemu-devel] [PATCH] block-backend: allow flush on devices with open tray

2016-06-14 Thread John Snow
On 06/14/2016 09:19 AM, Max Reitz wrote: > On 10.06.2016 23:59, John Snow wrote: >> If a device still has an attached BDS because the medium has not yet >> been removed, we will be unable to migrate to a new host because >> blk_flush will return an error for that backend. >> >> Replace the call t

Re: [Qemu-devel] [PATCH] block-backend: allow flush on devices with open tray

2016-06-14 Thread Max Reitz
On 14.06.2016 17:54, John Snow wrote: > > > On 06/14/2016 09:19 AM, Max Reitz wrote: >> On 10.06.2016 23:59, John Snow wrote: >>> If a device still has an attached BDS because the medium has not yet >>> been removed, we will be unable to migrate to a new host because >>> blk_flush will return an

Re: [Qemu-devel] [PATCH] block-backend: allow flush on devices with open tray

2016-06-14 Thread Max Reitz
On 10.06.2016 23:59, John Snow wrote: > If a device still has an attached BDS because the medium has not yet > been removed, we will be unable to migrate to a new host because > blk_flush will return an error for that backend. > > Replace the call to blk_is_available to blk_is_inserted to weaken >

Re: [Qemu-devel] [PATCH] block-backend: allow flush on devices with open tray

2016-06-13 Thread John Snow
On 06/10/2016 06:42 PM, Eric Blake wrote: > On 06/10/2016 03:59 PM, John Snow wrote: >> If a device still has an attached BDS because the medium has not yet >> been removed, we will be unable to migrate to a new host because >> blk_flush will return an error for that backend. >> >> Replace the ca

Re: [Qemu-devel] [PATCH] block-backend: allow flush on devices with open tray

2016-06-11 Thread Fam Zheng
On Fri, 06/10 17:59, John Snow wrote: > If a device still has an attached BDS because the medium has not yet > been removed, we will be unable to migrate to a new host because > blk_flush will return an error for that backend. > > Replace the call to blk_is_available to blk_is_inserted to weaken >

Re: [Qemu-devel] [PATCH] block-backend: allow flush on devices with open tray

2016-06-10 Thread Eric Blake
On 06/10/2016 03:59 PM, John Snow wrote: > If a device still has an attached BDS because the medium has not yet > been removed, we will be unable to migrate to a new host because > blk_flush will return an error for that backend. > > Replace the call to blk_is_available to blk_is_inserted to weake

[Qemu-devel] [PATCH] block-backend: allow flush on devices with open tray

2016-06-10 Thread John Snow
If a device still has an attached BDS because the medium has not yet been removed, we will be unable to migrate to a new host because blk_flush will return an error for that backend. Replace the call to blk_is_available to blk_is_inserted to weaken the check and allow flushes from the backend to w