From e6e93a9803d7a5fa9bb641c170387b2e04be81b3 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Mon, 18 Mar 2024 22:43:29 +0100 Subject: [PATCH] Made Xorriso_make_read_options() ready for long block adresses --- xorriso/drive_mgt.c | 9 +++++---- xorriso/xorriso_timestamp.h | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/xorriso/drive_mgt.c b/xorriso/drive_mgt.c index 79a2eabe..729668d6 100644 --- a/xorriso/drive_mgt.c +++ b/xorriso/drive_mgt.c @@ -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; } diff --git a/xorriso/xorriso_timestamp.h b/xorriso/xorriso_timestamp.h index 725617ca..5d07bfbb 100644 --- a/xorriso/xorriso_timestamp.h +++ b/xorriso/xorriso_timestamp.h @@ -1 +1 @@ -#define Xorriso_timestamP "2024.03.18.204021" +#define Xorriso_timestamP "2024.03.18.214311"