qemu-server/PVE/API2
Fabian Grünbichler 74479ee9bb Make foreach_drive order deterministic
Previously, foreach_drive iterated over all configuration
keys (in a random order) and checked whether the current key
is a valid drive name. Instead, we now iterate over a list
of valid drive names (with deterministic order) and check
whether a drive with such a name exists in the
configuration.

Also rename the two involved methods from valid_drive_name
to is_valid_drive_name (for the check) and from disknames
to valid_drive_names (for the list of valid keys), for
consistency. These two were only used in the qemu-server
code base.
2016-03-04 06:25:48 +01:00
..
Makefile imported from svn 'qemu-server/pve2' 2011-08-23 07:47:04 +02:00
Qemu.pm Make foreach_drive order deterministic 2016-03-04 06:25:48 +01:00