-
Ilias Tsitsimpis authored
With the new format for cmdline arguments, the user is able to add a disk to an instance at a specific index. But filebased disks' filenames have the form "{0}/disk{1}" where '{0}' is the file_storage_dir and '{1}' is the index of the disk. So if an instance has 3 disks and we try to create a new one at index 1, the operation will fail because the filename "{0}/disk1" already exists. This patch fixes the above problem and also makes the naming of file and shared disks uniform with other templates. Signed-off-by: Ilias Tsitsimpis <iliastsi@grnet.gr> Signed-off-by: Klaus Aehlig <aehlig@google.com> Reviewed-by: Klaus Aehlig <aehlig@google.com>
94e252a3