qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] Should we auto-generate IDs?


From: Eric Blake
Subject: Re: [Qemu-devel] Should we auto-generate IDs?
Date: Thu, 27 Aug 2015 08:02:44 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0

On 08/27/2015 07:56 AM, Programmingkid wrote:

>> If we did have auto-generated names, we would need to come up with a
>> scheme that is not going to clash with any existing naming that users
>> of QEMU may already be doing, otherwise we risk causing a regression.
>> Something as simple as what you suggest has non-trivial chance of
>> clashing.
> 
> Actually there is a way to prevent clashing. When QEMU auto-generates a
> name, it could scan all the ID's to see if there is a clash. If the ID is 
> already
> taken, just increment the ID until it is detected to be unique. The previous
> threads on this subject has patches that did just that. This means that a
> ID scheme that is just a single number would work without clashes. 

No, because you cannot predict what FUTURE names the user will request.
 The name generated by qemu must be IMPOSSIBLE to request manually, and
not just one that happens not to clash at the current moment.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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