New option -list_extras
This commit is contained in:
parent
0400400178
commit
a8de5f38e4
@ -187,6 +187,7 @@ Xorriso_option_jigdo;
|
||||
Xorriso_option_joliet;
|
||||
Xorriso_option_list_delimiter;
|
||||
Xorriso_option_list_formats;
|
||||
Xorriso_option_list_formats;
|
||||
Xorriso_option_list_profiles;
|
||||
Xorriso_option_list_speeds;
|
||||
Xorriso_option_load;
|
||||
|
@ -770,3 +770,94 @@ jte_failed:
|
||||
|
||||
}
|
||||
|
||||
|
||||
int Xorriso_list_extras_result(struct XorrisO *xorriso, char *mode,
|
||||
char *what, int flag)
|
||||
{
|
||||
if(mode[0] != 0 && strcmp(mode, "all") != 0) {
|
||||
if(strcmp(mode, what) != 0 &&
|
||||
(mode[0] != '-' || strcmp(mode + 1, what) != 0))
|
||||
return(2);
|
||||
}
|
||||
Xorriso_result(xorriso, 0);
|
||||
return(1);
|
||||
}
|
||||
|
||||
|
||||
int Xorriso_list_extras(struct XorrisO *xorriso, char *mode, int flag)
|
||||
{
|
||||
int ret;
|
||||
|
||||
if(strcmp(mode, "codes") == 0) {
|
||||
sprintf(xorriso->result_line,
|
||||
"List of xorriso extra feature codes. Usable with or without dash.\n");
|
||||
Xorriso_result(xorriso, 0);
|
||||
sprintf(xorriso->result_line, "Local ACL : -acl\n");
|
||||
Xorriso_result(xorriso, 0);
|
||||
sprintf(xorriso->result_line, "Local xattr : -xattr\n");
|
||||
Xorriso_result(xorriso, 0);
|
||||
sprintf(xorriso->result_line, "Jigdo files : -jigdo\n");
|
||||
Xorriso_result(xorriso, 0);
|
||||
sprintf(xorriso->result_line, "zisofs : -zisofs\n");
|
||||
Xorriso_result(xorriso, 0);
|
||||
sprintf(xorriso->result_line, "Ext. filters : -external_filter\n");
|
||||
Xorriso_result(xorriso, 0);
|
||||
sprintf(xorriso->result_line, "DVD obs 64 kB: -dvd_obs\n");
|
||||
Xorriso_result(xorriso, 0);
|
||||
sprintf(xorriso->result_line, "Readline : -use_readline\n");
|
||||
Xorriso_result(xorriso, 0);
|
||||
return(1);
|
||||
}
|
||||
sprintf(xorriso->result_line,
|
||||
"List of xorriso extra features. yes = enabled , no = disabled\n");
|
||||
Xorriso_list_extras_result(xorriso, mode, "list_extras", 0);
|
||||
|
||||
ret= iso_local_attr_support(3);
|
||||
sprintf(xorriso->result_line, "Local ACL : %s\n", ret & 1 ? "yes" : "no");
|
||||
Xorriso_list_extras_result(xorriso, mode, "acl", 0);
|
||||
sprintf(xorriso->result_line, "Local xattr : %s\n", ret & 2 ? "yes" : "no");
|
||||
Xorriso_list_extras_result(xorriso, mode, "xattr", 0);
|
||||
|
||||
sprintf(xorriso->result_line, "Jigdo files : %s\n",
|
||||
#ifdef Xorriso_with_libjtE
|
||||
"yes");
|
||||
#else
|
||||
"no");
|
||||
#endif
|
||||
Xorriso_list_extras_result(xorriso, mode, "jigdo", 0);
|
||||
|
||||
ret= iso_file_add_zisofs_filter(NULL, 4);
|
||||
sprintf(xorriso->result_line, "zisofs : %s\n", ret == 2 ? "yes" : "no");
|
||||
Xorriso_list_extras_result(xorriso, mode, "zisofs", 0);
|
||||
|
||||
sprintf(xorriso->result_line, "Ext. filters : %s\n",
|
||||
#ifdef Xorriso_allow_external_filterS
|
||||
#ifdef Xorriso_allow_extf_suiD
|
||||
"yes , setuid allowed");
|
||||
#else
|
||||
"yes , setuid banned");
|
||||
#endif
|
||||
#else
|
||||
"no");
|
||||
#endif
|
||||
Xorriso_list_extras_result(xorriso, mode, "external_filter", 0);
|
||||
|
||||
sprintf(xorriso->result_line, "DVD obs 64 kB: %s\n",
|
||||
#ifdef Xorriso_dvd_obs_default_64K
|
||||
"yes");
|
||||
#else
|
||||
"no");
|
||||
#endif
|
||||
Xorriso_list_extras_result(xorriso, mode, "dvd_obs", 0);
|
||||
|
||||
sprintf(xorriso->result_line, "Readline : %s\n",
|
||||
#ifdef Xorriso_with_readlinE
|
||||
"yes");
|
||||
#else
|
||||
"no");
|
||||
#endif
|
||||
Xorriso_list_extras_result(xorriso, mode, "use_readline", 0);
|
||||
|
||||
return(1);
|
||||
}
|
||||
|
||||
|
@ -1963,6 +1963,10 @@ int Xorriso_option_help(struct XorrisO *xorriso, int flag)
|
||||
" Enable or disable logging of SCSI commands to stderr.",
|
||||
" # any text Is ignored. In dialog mode the input line will be stored in",
|
||||
" the eventual readline history, nevertheless.",
|
||||
" -list_extras code",
|
||||
" Tell whether certain extra features were enabled at compile",
|
||||
" time. Code \"all\" lists all features and a headline. Other",
|
||||
" codes pick a single feature. \"codes\" lists the known codes.",
|
||||
" -version Tell program and version number",
|
||||
" -end End program. Commit eventual pending changes.",
|
||||
" -rollback_end",
|
||||
|
@ -115,6 +115,16 @@ int Xorriso_option_list_delimiter(struct XorrisO *xorriso, char *text,
|
||||
}
|
||||
|
||||
|
||||
/* Option -list_extras */
|
||||
int Xorriso_option_list_extras(struct XorrisO *xorriso, char *mode, int flag)
|
||||
{
|
||||
int ret;
|
||||
|
||||
ret= Xorriso_list_extras(xorriso, mode, 0);
|
||||
return(ret);
|
||||
}
|
||||
|
||||
|
||||
/* Option -list_formats */
|
||||
int Xorriso_option_list_formats(struct XorrisO *xorriso, int flag)
|
||||
{
|
||||
|
@ -466,7 +466,7 @@ int Xorriso_count_args(struct XorrisO *xorriso, int argc, char **argv,
|
||||
"dummy","dvd_obs","early_stdio_test", "eject",
|
||||
"iso_rr_pattern","follow","format","fs","gid","grow_blindly","hardlinks",
|
||||
"history","indev","in_charset","joliet",
|
||||
"list_delimiter","list_profiles","local_charset",
|
||||
"list_delimiter","list_extras","list_profiles","local_charset",
|
||||
"mark","md5","mount_opts","not_leaf","not_list","not_mgt",
|
||||
"options_from_file","osirrox","outdev","out_charset","overwrite",
|
||||
"pacifier","padding","path_list","pathspecs","pkt_output",
|
||||
@ -1023,6 +1023,10 @@ next_command:;
|
||||
(*idx)++;
|
||||
ret= Xorriso_option_list_delimiter(xorriso, arg1, 0);
|
||||
|
||||
} else if(strcmp(cmd, "list_extras") == 0) {
|
||||
(*idx)++;
|
||||
ret= Xorriso_option_list_extras(xorriso, arg1, 0);
|
||||
|
||||
} else if(strcmp(cmd,"list_formats")==0) {
|
||||
ret= Xorriso_option_list_formats(xorriso, 0);
|
||||
|
||||
|
@ -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 "Version 1.1.5, Aug 8, 2011"
|
||||
.TH XORRISO 1 "Version 1.1.5, Aug 18, 2011"
|
||||
.\" Please adjust this date whenever revising the manpage.
|
||||
.\"
|
||||
.\" Some roff macros, for reference:
|
||||
@ -3924,6 +3924,29 @@ Print helptext.
|
||||
\fB\-version\fR
|
||||
Print program name and version, component versions, license.
|
||||
.TP
|
||||
\fB\-list_extras\fR code
|
||||
Tell whether certain extra features were enabled at compile time.
|
||||
Code "all" lists all features and a headline.
|
||||
Other codes pick a single feature.
|
||||
Code "codes" lists them. They share names with related commands
|
||||
(see also there):
|
||||
.br
|
||||
"acl" tells whether xorriso has an adapter for local filesystems ACLs.
|
||||
.br
|
||||
"xattr" tells whether xorriso has an adapter for local filesystems EA.
|
||||
.br
|
||||
"jigdo" tells whether production of Jigdo files is possible.
|
||||
.br
|
||||
"zisofs" tells whether zisofs and built\-in gzip filters are enabled.
|
||||
.br
|
||||
"external_filter" tells whether external filter processes are allowed
|
||||
and whether they are allowed if real user id and effective user id differ.
|
||||
.br
|
||||
"dvd_obs" tells whether 64 kB output to DVD media is default.
|
||||
.br
|
||||
"use_readline" tells whether readline may be enabled in dialog mode.
|
||||
.br
|
||||
.TP
|
||||
\fB\-history\fR textline
|
||||
Copy textline into libreadline history.
|
||||
.TP
|
||||
|
@ -920,6 +920,9 @@ int Xorriso_option_joliet(struct XorrisO *xorriso, char *mode, int flag);
|
||||
int Xorriso_option_list_delimiter(struct XorrisO *xorriso, char *text,
|
||||
int flag);
|
||||
|
||||
/* Option -list_extras */
|
||||
int Xorriso_option_list_extras(struct XorrisO *xorriso, char *mode, int flag);
|
||||
|
||||
/* Option -list_formats */
|
||||
int Xorriso_option_list_formats(struct XorrisO *xorriso, int flag);
|
||||
|
||||
|
@ -3447,6 +3447,24 @@ File: xorriso.info, Node: Scripting, Next: Frontend, Prev: Emulation, Up: Op
|
||||
-version
|
||||
Print program name and version, component versions, license.
|
||||
|
||||
-list_extras code
|
||||
Tell whether certain extra features were enabled at compile time.
|
||||
Code "all" lists all features and a headline. Other codes pick a
|
||||
single feature. Code "codes" lists them. They share names with
|
||||
related commands (see also there):
|
||||
"acl" tells whether xorriso has an adapter for local filesystems
|
||||
ACLs.
|
||||
"xattr" tells whether xorriso has an adapter for local filesystems
|
||||
EA.
|
||||
"jigdo" tells whether production of Jigdo files is possible.
|
||||
"zisofs" tells whether zisofs and built-in gzip filters are
|
||||
enabled.
|
||||
"external_filter" tells whether external filter processes are
|
||||
allowed and whether they are allowed if real user id and effective
|
||||
user id differ.
|
||||
"dvd_obs" tells whether 64 kB output to DVD media is default.
|
||||
"use_readline" tells whether readline may be enabled in dialog
|
||||
mode.
|
||||
-history textline
|
||||
Copy textline into libreadline history.
|
||||
|
||||
@ -4194,7 +4212,7 @@ File: xorriso.info, Node: CommandIdx, Next: ConceptIdx, Prev: Legal, Up: Top
|
||||
|