Adjusted behavior of -as mkisofs option -D
This commit is contained in:
parent
3af66f3c8a
commit
ba571848fa
@ -951,7 +951,7 @@ int Xorriso_genisofs(struct XorrisO *xorriso, char *whom,
|
||||
int do_print_size= 0, fd, idx, iso_level= 1, emul_boot= 2;
|
||||
int option_b= 0, was_failure= 0, fret, lower_r= 0, zero= 0;
|
||||
int dir_mode= -1, file_mode= -1, count, partition_number, allow_dir_id_ext= 1;
|
||||
int root_seen= 0, do_md5_mem;
|
||||
int root_seen= 0, do_md5_mem, option_d= 0;
|
||||
mode_t mode_and, mode_or;
|
||||
int with_boot_image= 0, with_cat_path= 0, with_emul_toc= 0;
|
||||
int old_root_md5= 1, old_root_dev= 0, old_root_ino= 1;
|
||||
@ -1633,9 +1633,7 @@ not_enough_args:;
|
||||
|
||||
} else if(strcmp(argpt, "-D") == 0 ||
|
||||
strcmp(argpt, "-disable-deep-relocation") == 0) {
|
||||
ret= Xorriso_option_compliance(xorriso, "deep_paths", 0);
|
||||
if(ret <= 0)
|
||||
goto problem_handler_2;
|
||||
option_d= 1;
|
||||
|
||||
} else if(strcmp(argpt, "-hide-rr-moved") == 0) {
|
||||
rr_reloc_dir_pt= ".rr_moved";
|
||||
@ -1656,7 +1654,8 @@ rr_reloc_dir:;
|
||||
ret= Xorriso_option_rr_reloc_dir(xorriso, rr_reloc_dir_pt, 0);
|
||||
if(ret <= 0)
|
||||
goto problem_handler_2;
|
||||
ret= Xorriso_option_compliance(xorriso, "deep_paths_off", 0);
|
||||
ret= Xorriso_option_compliance(xorriso, "deep_paths_off:long_paths_off",
|
||||
0);
|
||||
if(ret <= 0)
|
||||
goto problem_handler_2;
|
||||
|
||||
@ -1832,6 +1831,9 @@ problem_handler_2:;
|
||||
goto ex;
|
||||
}
|
||||
|
||||
if(option_d)
|
||||
Xorriso_option_compliance(xorriso, "deep_paths:long_paths", 0);
|
||||
|
||||
/* After all pathspecs are added: perform boot related options */
|
||||
for(j= 0; j < delay_opt_count; j++) {
|
||||
i= delay_opt_list[j] & ~(1 << 31);
|
||||
|
@ -1 +1 @@
|
||||
#define Xorriso_timestamP "2012.03.13.102621"
|
||||
#define Xorriso_timestamP "2012.03.14.152414"
|
||||
|
@ -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 XORRISOFS 1 "Version 1.2.1, Mar 12, 2012"
|
||||
.TH XORRISOFS 1 "Version 1.2.1, Mar 14, 2012"
|
||||
.\" Please adjust this date whenever revising the manpage.
|
||||
.\"
|
||||
.\" Some roff macros, for reference:
|
||||
@ -494,26 +494,26 @@ Alias of \-r.
|
||||
.TP
|
||||
\fB\-D\fR
|
||||
The standard ECMA\-119 demands that no path in the image shall have more
|
||||
than 8 name components. Therefore it would be necessary to move deeper
|
||||
directory trees to a higher directory. Rock Ridge offers an opportunity to
|
||||
let these relocated directories appear at their orginal deep position, but
|
||||
this feature might not be implemented properly by operating systems which
|
||||
mount the image.
|
||||
than 8 name components or 255 characters. Therefore it would be necessary
|
||||
to move deeper directory trees to a higher directory. Rock Ridge offers an
|
||||
opportunity to let these relocated directories appear at their orginal
|
||||
deep position, but this feature might not be implemented properly by
|
||||
operating systems which mount the image.
|
||||
.br
|
||||
Option \-D disables this deep directory relocation, and thus violates
|
||||
ISO 9660 specs.
|
||||
.br
|
||||
xorrisofs has \-D set by default. It may get overridden by option \-rr_reloc_dir
|
||||
or by option \-hide\-rr\-moved, and it may override said options. The last one
|
||||
in the option list wins.
|
||||
xorrisofs has \-D set by default. If given explicitely then it overrides
|
||||
the options \-rr_reloc_dir and \-hide\-rr\-moved.
|
||||
.TP
|
||||
\fB\-disable-deep-relocation\fR
|
||||
Alias of \-D.
|
||||
.TP
|
||||
\fB\-rr_reloc_dir\fR name
|
||||
Enable the relocation of deep directories and thus avoid ECMA\-119 file paths
|
||||
of more than 8 name components. Directories of depth 8 will get moved to a
|
||||
directory in the root directory of the image. Its name gets set by this option.
|
||||
of more than 8 name components or 255 characters. Directories which lead to
|
||||
such file paths will get moved to a directory in the root directory of the
|
||||
image. Its name gets set by this option.
|
||||
It is permissible to use the root directory itself.
|
||||
.br
|
||||
The overall directory tree will appear originally deep when interpreted as
|
||||
@ -527,6 +527,8 @@ mounted Rock Ridge images.
|
||||
.br
|
||||
The name must not contain a '/' character after its first character and it
|
||||
must not be longer than 255 bytes.
|
||||
.br
|
||||
This option has no effect if option \-D is present.
|
||||
.TP
|
||||
\fB\-hide-rr-moved\fR
|
||||
Alias of \-rr_reloc_dir "/.rr_moved"
|
||||
|
@ -508,26 +508,26 @@ File: xorrisofs.info, Node: SetExtras, Next: SetHide, Prev: SetCompl, Up: Op
|
||||
|
||||
-D
|
||||
The standard ECMA-119 demands that no path in the image shall have
|
||||
more than 8 name components. Therefore it would be necessary to
|
||||
move deeper directory trees to a higher directory. Rock Ridge
|
||||
offers an opportunity to let these relocated directories appear at
|
||||
their orginal deep position, but this feature might not be
|
||||
implemented properly by operating systems which mount the image.
|
||||
more than 8 name components or 255 characters. Therefore it would
|
||||
be necessary to move deeper directory trees to a higher directory.
|
||||
Rock Ridge offers an opportunity to let these relocated
|
||||
directories appear at their orginal deep position, but this
|
||||
feature might not be implemented properly by operating systems
|
||||
which mount the image.
|
||||
Option -D disables this deep directory relocation, and thus
|
||||
violates ISO 9660 specs.
|
||||
xorrisofs has -D set by default. It may get overridden by option
|
||||
-rr_reloc_dir or by option -hide-rr-moved, and it may override
|
||||
said options. The last one in the option list wins.
|
||||
xorrisofs has -D set by default. If given explicitely then it
|
||||
overrides the options -rr_reloc_dir and -hide-rr-moved.
|
||||
|
||||
-disable-deep-relocation
|
||||
Alias of -D.
|
||||
|
||||
-rr_reloc_dir name
|
||||
Enable the relocation of deep directories and thus avoid ECMA-119
|
||||
file paths of more than 8 name components. Directories of depth 8
|
||||
will get moved to a directory in the root directory of the image.
|
||||
Its name gets set by this option. It is permissible to use the
|
||||
root directory itself.
|
||||
file paths of more than 8 name components or 255 characters.
|
||||
Directories which lead to such file paths will get moved to a
|
||||
directory in the root directory of the image. Its name gets set by
|
||||
this option. It is permissible to use the root directory itself.
|
||||
The overall directory tree will appear originally deep when
|
||||
interpreted as Rock Ridge tree. It will appear as re-arranged if
|
||||
only ECMA-119 information is considered.
|
||||
@ -537,6 +537,7 @@ File: xorrisofs.info, Node: SetExtras, Next: SetHide, Prev: SetCompl, Up: Op
|
||||
will not be displayed in mounted Rock Ridge images.
|
||||
The name must not contain a '/' character after its first
|
||||
character and it must not be longer than 255 bytes.
|
||||
This option has no effect if option -D is present.
|
||||
|
||||
-hide-rr-moved
|
||||
Alias of -rr_reloc_dir "/.rr_moved"
|
||||
@ -1534,15 +1535,15 @@ File: xorrisofs.info, Node: CommandIdx, Next: ConceptIdx, Prev: Legal, Up: T
|
||||
|