Implemented a more reasonable solution for drive truncation with regular files
This commit is contained in:
@ -417,9 +417,11 @@ int Xorriso_create_empty_iso(struct XorrisO *xorriso, int flag)
|
||||
}
|
||||
|
||||
|
||||
/* @param flag bit0=aquire as isoburn input drive
|
||||
bit1=aquire as libburn output drive (as isoburn drive if bit0)
|
||||
bit2=regard overwriteable media as blank
|
||||
/* @param flag bit0= aquire as isoburn input drive
|
||||
bit1= aquire as libburn output drive (as isoburn drive if bit0)
|
||||
bit2= regard overwriteable media as blank
|
||||
bit3= if the drive is a regular disk file: truncate it to
|
||||
the write start address
|
||||
@return <=0 failure , 1= ok
|
||||
2=success, but not writeable with bit1
|
||||
3=success, but not blank and not ISO with bit0
|
||||
@ -477,7 +479,7 @@ int Xorriso_aquire_drive(struct XorrisO *xorriso, char *adr, int flag)
|
||||
}
|
||||
|
||||
if(dinfo==NULL) {
|
||||
ret= isoburn_drive_aquire(&dinfo, libburn_adr, 1|((flag&4)>>1));
|
||||
ret= isoburn_drive_aquire(&dinfo, libburn_adr, 1|((flag&(8|4))>>1));
|
||||
Xorriso_process_msg_queues(xorriso,0);
|
||||
if(ret<=0) {
|
||||
sprintf(xorriso->info_text,"Cannot aquire drive '%s'", adr);
|
||||
|
Reference in New Issue
Block a user