Aligned sessions on overwriteables to full 32 blocks

This commit is contained in:
Thomas Schmitt 2009-10-07 12:39:45 +00:00
parent ca1919dda0
commit 6934bcc9a6
3 changed files with 12 additions and 2 deletions

View File

@ -15829,7 +15829,7 @@ int Xorriso_option_help(struct XorrisO *xorriso, int flag)
" -load \"session\"|\"track\"|\"lba\"|\"sbsector\"|\"volid\"|\"auto\" id", " -load \"session\"|\"track\"|\"lba\"|\"sbsector\"|\"volid\"|\"auto\" id",
" Load a particular (outdated) ISO image from a -dev or", " Load a particular (outdated) ISO image from a -dev or",
" -indev which hosts more than one session.", " -indev which hosts more than one session.",
" -rom_toc_scan \"on\"|\"off\"[:\"emul_on\"|\"emul_off\"]", " -rom_toc_scan \"on\"|\"force\"|\"off\"[:\"emul_on\"|\"emul_off\"]",
" Enable scanning for ISO sessions on read-only drives/media", " Enable scanning for ISO sessions on read-only drives/media",
" resp. on overwriteable media with emulated TOC.", " resp. on overwriteable media with emulated TOC.",
" -calm_drive \"in\"|\"out\"|\"all\"|\"on\"|\"off\"", " -calm_drive \"in\"|\"out\"|\"all\"|\"on\"|\"off\"",

View File

@ -1 +1 @@
#define Xorriso_timestamP "2009.10.07.080042" #define Xorriso_timestamP "2009.10.07.124047"

View File

@ -1485,6 +1485,16 @@ no_track:;
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "NOTE", 0); Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "NOTE", 0);
} }
} }
if(xorriso->alignment == 0) {
ret= isoburn_needs_emulation(drive);
if(ret > 0) {
/* Take care that the session is padded up to the future NWA.
Else with padding < 32 it could happen that PVDs from older
sessions survive and confuse -rom_toc_scan.
*/
xorriso->alignment= 32;
}
}
if(xorriso->alignment > 0) { if(xorriso->alignment > 0) {
if(img_sectors > 0) { if(img_sectors > 0) {
ret= isoburn_disc_track_lba_nwa(drive, burn_options, 0, &lba, &nwa); ret= isoburn_disc_track_lba_nwa(drive, burn_options, 0, &lba, &nwa);