Fix upgrade and downgrade regarding disk.dev_type
authorHelga Velroyen <helgav@google.com>
Mon, 7 Oct 2013 11:00:01 +0000 (13:00 +0200)
committerHelga Velroyen <helgav@google.com>
Mon, 7 Oct 2013 13:58:53 +0000 (15:58 +0200)
commit7187a8772842d3a080e47abee530d94b11e6ecb3
tree9ab1c61b1e34f21792c5ce925a6640ac3898cc42
parent66a37e7ad70bfb967f3b2cf70beee552dd229581
Fix upgrade and downgrade regarding disk.dev_type

The up/downgrade procedure so far did not consider the
changes in the 'dev_type' attribute of disks. This patch
adds relevant checks and updates. A related problem
was that the logical IDs of disks were adjusted depending
on the dev_type, which made the order of updates not
arbitrary anymore. To make this more robust, the upgrade
procedure also considers the old versions of dev_types
(at least for 2.9).

Signed-off-by: Helga Velroyen <helgav@google.com>
Reviewed-by: Thomas Thrainer <thomasth@google.com>
tools/cfgupgrade