Skip to content
Snippets Groups Projects
Commit acf54750 authored by Carlos Aguado Sanchez's avatar Carlos Aguado Sanchez Committed by Rom Walton
Browse files

Fix naming scheme for cache and iso

parent a57cbb79
Branches
No related tags found
No related merge requests found
......@@ -776,14 +776,6 @@ int main(int argc, char** argv) {
);
vm.floppy_image_filename = buf;
}
if (vm.enable_cache_disk) {
sprintf(buf, "%s.%s", CACHE_DISK_FILENAME, CACHE_DISK_FILENAME_EXTENSION);
vm.cache_disk_filename = buf;
}
if (vm.enable_isocontextualization) {
sprintf(buf, "%s.%s", ISO_IMAGE_FILENAME, ISO_IMAGE_FILENAME_EXTENSION);
vm.iso_image_filename = buf;
}
} else {
vm.vm_master_name += md5_string(std::string(aid.result_name)).substr(0, 16);
vm.vm_master_description = aid.result_name;
......@@ -800,15 +792,15 @@ int main(int argc, char** argv) {
);
vm.floppy_image_filename = buf;
}
}
if (vm.enable_cache_disk) {
sprintf(buf, "%s_%d.%s", CACHE_DISK_FILENAME, aid.slot, CACHE_DISK_FILENAME_EXTENSION);
sprintf(buf, "%s.%s", CACHE_DISK_FILENAME, CACHE_DISK_FILENAME_EXTENSION);
vm.cache_disk_filename = buf;
}
if (vm.enable_isocontextualization) {
sprintf(buf, "%s_%d.%s", ISO_IMAGE_FILENAME, aid.slot, ISO_IMAGE_FILENAME_EXTENSION);
sprintf(buf, "%s.%s", ISO_IMAGE_FILENAME, ISO_IMAGE_FILENAME_EXTENSION);
vm.iso_image_filename = buf;
}
}
if (aid.ncpus > 1.0 || ncpus > 1.0) {
if (ncpus) {
sprintf(buf, "%d", (int)ceil(ncpus));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment