.TP
.BI \-E " extended-options"
Set extended options for the file system. Extended options are comma
-separated, and may take an argument using the equals ('=') sign. The
+separated, and may take an argument using the equals ('=') sign. Multiple
+.B \-E
+options may also be used. The
.B \-E
option used to be
.B \-R
int default_csum_seed = 0;
errcode_t retval;
char * oldpath = getenv("PATH");
- char * extended_opts = 0;
+ struct str_list extended_opts;
char * fs_type = 0;
char * usage_types = 0;
/*
journal_size = -1;
}
+ retval = init_list(&extended_opts);
+ if (retval) {
+ com_err(program_name, retval, "%s",
+ _("in malloc for extended_opts"));
+ exit(1);
+ }
+
while ((c = getopt (argc, argv,
"b:cd:e:g:i:jl:m:no:qr:s:t:vC:DE:FG:I:J:KL:M:N:O:R:ST:U:Vz:")) != EOF) {
switch (c) {
_("'-R' is deprecated, use '-E' instead"));
/* fallthrough */
case 'E':
- extended_opts = optarg;
+ push_string(&extended_opts, optarg);
break;
case 'e':
if (strcmp(optarg, "continue") == 0)
free(tmp);
}
- if (extended_opts)
- parse_extended_opts(&fs_param, extended_opts);
+ /* Get options from commandline */
+ for (cpp = extended_opts.list; *cpp; cpp++)
+ parse_extended_opts(&fs_param, *cpp);
if (fs_param.s_rev_level == EXT2_GOOD_OLD_REV) {
if (fs_features) {