qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH V2] Add -f option to qemu-nbd


From: Stefan Hajnoczi
Subject: Re: [Qemu-devel] [PATCH V2] Add -f option to qemu-nbd
Date: Thu, 17 Nov 2011 13:52:01 +0000

On Thu, Nov 17, 2011 at 1:41 PM, Paolo Bonzini <address@hidden> wrote:
> On 11/17/2011 12:36 PM, Chunyan Liu wrote:
>>
>> Adding lock to the nbd device before connecting disk image to that device
>> to
>> handling race conditions.
>
> This removes the possibility for other programs to lock.  Have you checked
> what happens if you use the same device twice and whether you can piggyback
> on e.g. an EBUSY from the NBD_SET_SOCK ioctl?

Yes, I just sent an email showing how we can use NBD_SET_LOCK for -EBUSY.

Stefan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]