Got rid of call system() in Xorriso_mount(), new option -session_string
This commit is contained in:
@ -2,7 +2,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 05, 2008"
|
||||
.TH XORRISO 1 "Dec 07, 2008"
|
||||
.\" Please adjust this date whenever revising the manpage.
|
||||
.\"
|
||||
.\" Some roff macros, for reference:
|
||||
@ -59,6 +59,8 @@ Can perform multi-session tasks as emulation of mkisofs and cdrecord.
|
||||
.br
|
||||
Can restore files from ISO image to disk filesystem (see osirrox).
|
||||
.br
|
||||
Can issue commands to mount older sessions on Linux or FreeBSD.
|
||||
.br
|
||||
Can check media for damages and copy readable blocks to disk.
|
||||
.br
|
||||
Scans for optical drives, blanks re-useable optical media.
|
||||
@ -1792,25 +1794,32 @@ to be the most recent real session then.
|
||||
Some read-only drives and media show no usable session history at all.
|
||||
Eventually option -rom_toc_scan might help.
|
||||
.TP
|
||||
\fB\-mount_cmd\fR drive entity id command_form
|
||||
\fB\-mount_cmd\fR drive entity id path
|
||||
Print to the result channel an appropriate command line for mounting the
|
||||
ISO session which is depicted by drive, entity and id. The id can be a block
|
||||
address with entity "sbsector", a track number with "track", a session number
|
||||
with "session", a volume id search pattern with "volid", or any text with
|
||||
"auto". See also option -load.
|
||||
ISO session which is depicted by drive, entity and id. See option -mount
|
||||
for direct execution of this command.
|
||||
.br
|
||||
drive can be "indev", "outdev" or the address of a not yet aquired drive.
|
||||
Prefix "stdio:" for non MMC drives is not mandatory.
|
||||
Prefix "stdio:" for non-MMC drives is not mandatory.
|
||||
.br
|
||||
command_form is either "linux:"path , or "freebsd:"path, or "shell:"command,
|
||||
or a path.
|
||||
The path will be used as moint point and has already to exist as directory.
|
||||
A command line with suitable options is then generated.
|
||||
If no recognizable prefix is given then xorriso guesses on which kind of
|
||||
system it runs and uses the whole command_form as path.
|
||||
The id can be a block address with entity "sbsector", a track number with
|
||||
"track", a session number with "session", a volume id search pattern with
|
||||
"volid", or a dummy text with "auto". See also option -load.
|
||||
.br
|
||||
If shell:command is given, then xorriso will substitute in the command text
|
||||
the following parameter names:
|
||||
path will be used as mount point and has already to exist as directory.
|
||||
.br
|
||||
xorriso determines on which kind of system it runs. Supported are Linux and
|
||||
FreeBSD.
|
||||
.TP
|
||||
\fB\-session_string\fR drive entity id format
|
||||
Print to the result channel a text which gets composed according to
|
||||
format and the parameters of the addressed session.
|
||||
.br
|
||||
Formats "linux:"path or "freebsd:"path produce the output of -mount_cmd
|
||||
for the given operating systems.
|
||||
.br
|
||||
In other texts xorriso will substitute the following parameter names.
|
||||
An optional prefix "string:" will be removed.
|
||||
.br
|
||||
"%device%" will be substituted by the mountable device path of the drive
|
||||
address.
|
||||
@ -2197,13 +2206,12 @@ Read the content of a ISO data file and write it into a data file on disk
|
||||
beginning at the byte_offset. Write at most byte_count bytes.
|
||||
This is the inverse of option -cut_out.
|
||||
.TP
|
||||
\fB\-mount\fR drive entity id command_form
|
||||
Produce the same line as -mount_cmd and then execute it as shell command
|
||||
\fB\-mount\fR drive entity id path
|
||||
Produce the same line as -mount_cmd and then execute it as external program run
|
||||
after giving up the depicted drive.
|
||||
This demands -osirrox to be enabled and normally will succeed only for the
|
||||
superuser. For safety reasons it will refuse to execute the command line
|
||||
if it stems from command_form shell:command or if setuid or setgid are in
|
||||
effect. In these cases -mount will default to -mount_cmd and a SORRY event.
|
||||
superuser. For safety reasons the mount program is only executed if it is
|
||||
reachable as /bin/mount or /sbin/mount.
|
||||
.TP
|
||||
.B Command compatibility emulations:
|
||||
.PP
|
||||
@ -2853,7 +2861,9 @@ the newly written session (here for mount point /mnt):
|
||||
-mount_cmd "indev" "auto" "auto" /mnt
|
||||
.br
|
||||
Options -mount_cmd and -mount are also able to produce the mount commands for
|
||||
older sessions in the table-of-content.
|
||||
older sessions in the table-of-content. E.g. as superuser:
|
||||
.br
|
||||
\fB$\fR osirrox -mount /dev/sr0 "volid" '*2008_12_05*' /mnt
|
||||
.br
|
||||
Sessions on multi-session media are separated by several MB of unused blocks.
|
||||
So with small sessions the payload capacity can become substantially lower
|
||||
|
Reference in New Issue
Block a user