Matthias Bolte 63166a4e0c Add virIndexToDiskName and fix mapping gap
esxVMX_IndexToDiskName handles indices up to 701. This limit comes
from a mapping gap in virDiskNameToIndex:

  sdzy -> 700
  sdzz -> 701
  sdaaa -> 728
  sdaab -> 729

This line in virDiskNameToIndex causes this gap:

  idx = (idx + i) * 26;

Fixing it by altering this line to:

  idx = (idx + (i < 1 ? 0 : 1)) * 26;

Also add a new version of virIndexToDiskName that handles the inverse
mapping for arbitrary indices.

* src/esx/esx_vmx.[ch]: remove esxVMX_IndexToDiskName
* src/util/util.[ch]: add virIndexToDiskName and fix mapping gap
* tests/esxutilstest.c: update test to verify that the gap is fixed
2009-12-03 18:07:49 +01:00
..
2009-07-16 15:06:42 +02:00
2009-09-23 15:00:54 +02:00
2009-07-08 16:17:51 +02:00
2009-11-03 16:46:54 -05:00
2009-10-07 12:18:13 +02:00
2009-10-07 12:18:13 +02:00
2009-09-21 14:41:42 +01:00
2009-10-07 12:18:13 +02:00
2009-10-07 12:18:13 +02:00
2009-10-07 12:18:13 +02:00
2009-07-16 15:06:42 +02:00
2009-10-07 12:18:13 +02:00
2009-07-16 15:06:42 +02:00
2009-10-08 16:34:22 +02:00
2009-10-07 12:18:13 +02:00
2009-10-07 12:18:13 +02:00
2009-07-16 15:06:42 +02:00
2009-10-07 12:18:13 +02:00
2009-10-07 12:18:13 +02:00
2009-10-07 12:18:13 +02:00
2009-10-07 12:18:13 +02:00
2009-09-23 15:00:54 +02:00
2009-09-23 15:00:54 +02:00