Determining boot image size only after it was added to the ISO image

This commit is contained in:
Thomas Schmitt 2010-04-20 10:35:54 +00:00
parent 117b4b2048
commit 6ff4a5b71b
2 changed files with 16 additions and 17 deletions

View File

@ -11649,22 +11649,6 @@ not_enough_args:;
strcmp(argv[i], "-eltorito-boot") == 0 ||
strcmp(argv[i], "--efi-boot") == 0) {
i++;
if(xorriso->boot_platform_id == 0xef) {
/* >>> provisory: ts B00419
get size of xorriso->boot_image_bin_path, round up to 512
*/;
ret= Xorriso_normalize_img_path(xorriso, xorriso->wdi,
xorriso->boot_image_bin_path, sfe, 2 | 8);
if(ret<=0)
goto problem_handler_2;
ret= Xorriso_iso_lstat(xorriso, sfe, &stbuf, 2 | 4);
if(ret < 0)
goto problem_handler_2;
xorriso->boot_image_load_size= ((stbuf.st_size / (off_t) 512) +
!!(stbuf.st_size % (off_t) 512))
* 512;
}
} else if(strcmp(argv[i], "-c") == 0 ||
strcmp(argv[i], "-eltorito-catalog") == 0) {
i++;
@ -11766,6 +11750,21 @@ problem_handler_2:;
continue;
goto ex;
}
if(xorriso->boot_image_bin_path[0] && xorriso->boot_platform_id == 0xef) {
/* >>> provisory: ts B00419
get size of xorriso->boot_image_bin_path, round up to 512
*/;
ret= Xorriso_normalize_img_path(xorriso, xorriso->wdi,
xorriso->boot_image_bin_path, sfe, 2 | 8);
if(ret<=0)
goto problem_handler_2;
ret= Xorriso_iso_lstat(xorriso, sfe, &stbuf, 2 | 4);
if(ret < 0)
goto problem_handler_2;
xorriso->boot_image_load_size= ((stbuf.st_size / (off_t) 512) +
!!(stbuf.st_size % (off_t) 512)) * 512;
}
if(do_print_size) {
ret= Xorriso_option_print_size(xorriso, 1);
if(ret<=0)

View File

@ -1 +1 @@
#define Xorriso_timestamP "2010.04.20.091732"
#define Xorriso_timestamP "2010.04.20.103448"