Commit 6ad24ea9 authored by Thomas Schmitt's avatar Thomas Schmitt

Preliminarily banned writing while read displacement is non-zero

parent a08a5491
......@@ -549,6 +549,13 @@ 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);
......
......@@ -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 02, 2010"
.TH XORRISO 1 "Dec 04, 2010"
.\" Please adjust this date whenever revising the manpage.
.\"
.\" Some roff macros, for reference:
......@@ -644,7 +644,8 @@ 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.
and reading of their files. Writing is not allowed as long as -displacement
is non-zero.
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 02, 2010"
@c man .TH XORRISO 1 "Dec 04, 2010"
@c man .\" Please adjust this date whenever revising the manpage.
@c man .\"
@c man .\" Some roff macros, for reference:
......@@ -838,11 +838,12 @@ setting is valid for -rollback until next -dev or -indev, where it
will be reset to "auto".
@c man .TP
@item -displacement [-]lba
@kindex -displacment compensate altered image start address
@kindex -displacement compensate altered image start address
@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.
and reading of their files. Writing is not allowed as long as -displacement
is non-zero.
Examples:
@*
If a track of a CD starts at block 123456 and gets copied to a disk file
......
#define Xorriso_timestamP "2010.12.04.174311"
#define Xorriso_timestamP "2010.12.04.174431"
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