Menu

#313 mount_opts= can not be parsed correctly

open
tune2fs (7)
5
2012-11-28
2012-06-06
No

The outer option ("-E") and the inner opition "mount_opts=" both use comma for a delimiter.

Consequently you can set any -one- option in mount_opts= but you cannot set two or more wihtout failing a syntax check in parse_extended_options().

I didn't submit a patch as this is a semantic problem between the requiremetnts of options in mount against the established syntax of tune2fs' -E option.

Changing the comma to a period (or other delimiter) in the strtok() at line 1142 is a curative example fix, but not really the best one. Eihter a more complex parser is needed or the semantics of the command need to change.

Current as of 1.42.3

Discussion