Made Xorriso_make_read_options() ready for long block adresses

This commit is contained in:
Thomas Schmitt 2024-03-18 22:43:29 +01:00
parent b8b0f41320
commit e6e93a9803
2 changed files with 6 additions and 5 deletions

View File

@ -247,7 +247,8 @@ int Xorriso_make_read_options(struct XorrisO *xorriso,
struct isoburn_read_opts **ropts,
int flag)
{
int ret, ext, load_lba;
int ret, ext;
off_t load_lba;
enum burn_disc_status state;
/* fill read opts */
@ -312,13 +313,13 @@ int Xorriso_make_read_options(struct XorrisO *xorriso,
state= isoburn_disc_get_status(drive);
if(state != BURN_DISC_BLANK) {
ret= isoburn_disc_get_msc1(drive, &load_lba);
ret= isoburn_disc_get_msc1_v2(drive, &load_lba);
if(ret > 0 && !(flag & 1)) {
sprintf(xorriso->info_text,
"Loading ISO image tree from LBA %d", load_lba);
"Loading ISO image tree from LBA %.f", (double) load_lba);
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "NOTE", 0);
}
ret= Xorriso_assert_volid(xorriso, load_lba, 0);
ret= Xorriso_assert_volid(xorriso, (int) load_lba, 0);
if(ret <= 0)
goto ex;
}

View File

@ -1 +1 @@
#define Xorriso_timestamP "2024.03.18.204021"
#define Xorriso_timestamP "2024.03.18.214311"