Commit 496fc705 authored by Thomas Schmitt's avatar Thomas Schmitt

Allowed writing with read displacement if target media is blank

parent 6ad24ea9
......@@ -1724,8 +1724,11 @@ int Xorriso_option_commit(struct XorrisO *xorriso, int flag)
strcpy(newdev, xorriso->outdev);
if(xorriso->grow_blindly_msc2>=0)
ret= Xorriso_option_dev(xorriso, "", 3|4);
else
else {
xorriso->displacement= 0;
xorriso->displacement_sign= 0;
ret= Xorriso_option_dev(xorriso, newdev, 3|4);
}
return(ret);
}
......
......@@ -549,13 +549,6 @@ int Xorriso_write_session(struct XorrisO *xorriso, int flag)
char profile_name[80];
IsoBoot *bootcat_node;
if(abs(xorriso->displacement_sign) == 1 && xorriso->displacement != 0) {
sprintf(xorriso->info_text,
"May not write session while -displacement is non-zero");
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "FAILURE", 0);
{ret= 0; goto ex;}
}
ret= Xorriso_finish_hl_update(xorriso, 0);
if(ret <= 0)
return(ret);
......@@ -574,7 +567,15 @@ int Xorriso_write_session(struct XorrisO *xorriso, int flag)
if(ret<=0)
return(0);
s= isoburn_disc_get_status(drive);
if(xorriso->out_drive_handle == xorriso->in_drive_handle) {
if(abs(xorriso->displacement_sign) == 1 && xorriso->displacement != 0 &&
s != BURN_DISC_BLANK) {
sprintf(xorriso->info_text,
"May not grow ISO image while -displacement is non-zero");
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "FAILURE", 0);
{ret= 0; goto ex;}
}
source_drive= drive;
} else {
if(xorriso->in_drive_handle == NULL) {
......@@ -585,7 +586,6 @@ int Xorriso_write_session(struct XorrisO *xorriso, int flag)
if(ret<=0)
goto ex;
}
s= isoburn_disc_get_status(drive);
if(s!=BURN_DISC_BLANK) {
s= burn_disc_get_status(drive);
if(s!=BURN_DISC_BLANK)
......
......@@ -9,7 +9,7 @@
.\" First parameter, NAME, should be all caps
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
.\" other parameters are allowed: see man(7), man(1)
.TH XORRISO 1 "Dec 04, 2010"
.TH XORRISO 1 "Dec 06, 2010"
.\" Please adjust this date whenever revising the manpage.
.\"
.\" Some roff macros, for reference:
......@@ -644,8 +644,11 @@ will be reset to "auto".
\fB\-displacement\fR [-]lba
Compensate an eventual displacement of the image versus the start address
for which the image was prepared. This affects only loading of ISO images
and reading of their files. Writing is not allowed as long as -displacement
is non-zero.
and reading of their files. The multi-session method of growing is not allowed
as long as -displacement is non-zero. I.e. -indev and -outdev must be
different. Eventually the displacement is reset to 0 before the drive
gets re-aquired after writing.
.br
Examples:
.br
If a track of a CD starts at block 123456 and gets copied to a disk file
......
This diff is collapsed.
......@@ -44,7 +44,7 @@
@c man .\" First parameter, NAME, should be all caps
@c man .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
@c man .\" other parameters are allowed: see man(7), man(1)
@c man .TH XORRISO 1 "Dec 04, 2010"
@c man .TH XORRISO 1 "Dec 06, 2010"
@c man .\" Please adjust this date whenever revising the manpage.
@c man .\"
@c man .\" Some roff macros, for reference:
......@@ -842,8 +842,11 @@ will be reset to "auto".
@cindex Session, altered start address, -displacement
Compensate an eventual displacement of the image versus the start address
for which the image was prepared. This affects only loading of ISO images
and reading of their files. Writing is not allowed as long as -displacement
is non-zero.
and reading of their files. The multi-session method of growing is not allowed
as long as -displacement is non-zero. I.e. -indev and -outdev must be
different. Eventually the displacement is reset to 0 before the drive
gets re-aquired after writing.
@*
Examples:
@*
If a track of a CD starts at block 123456 and gets copied to a disk file
......
#define Xorriso_timestamP "2010.12.04.174431"
#define Xorriso_timestamP "2010.12.06.094347"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment