mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 15:27:47 +00:00
63166a4e0c
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 |
||
---|---|---|
.. | ||
esx_driver.c | ||
esx_driver.h | ||
esx_util.c | ||
esx_util.h | ||
esx_vi_methods.c | ||
esx_vi_methods.h | ||
esx_vi_types.c | ||
esx_vi_types.h | ||
esx_vi.c | ||
esx_vi.h | ||
esx_vmx.c | ||
esx_vmx.h |