diff options
author | Scott Lovenberg <scott.lovenberg@gmail.com> | 2010-05-14 19:32:05 -0400 |
---|---|---|
committer | Jeff Layton <jlayton@samba.org> | 2010-05-14 15:35:19 -0400 |
commit | 268079992cf85bfb9954b6fd4abb3eebf911a9d3 (patch) | |
tree | 56d29b349adff8bd0aa5b179105b4515707d04ae /missing | |
parent | 2fcf89a2077d3ddf203b73d72985aa68c6402693 (diff) | |
download | cifs-utils-268079992cf85bfb9954b6fd4abb3eebf911a9d3.tar.gz cifs-utils-268079992cf85bfb9954b6fd4abb3eebf911a9d3.tar.bz2 cifs-utils-268079992cf85bfb9954b6fd4abb3eebf911a9d3.zip |
mount.cifs: clean up option parsing
Moved option string parsing to function parse_opt_token(char*). Main
loop in parse_options(const char*, struct parsed_mount_info*)
transplanted to a switch block.
The parsing function folds common options to a single macro:
1.) 'unc','target', and 'path' -> 'OPT_UNC'
2.) 'dom*' and 'workg*' -> 'OPT_DOM'
3.) 'nobrl' and 'nolock' -> 'OPT_NO_LOCK'
Kept 'fmask' and 'dmask' (OPT_FMASK, OPT_DMASK), which fall through to
'file_mode' and 'dir_mode' in the main loop.
Signed-off-by: Scott Lovenberg <scott.lovenberg@gmail.com>
Diffstat (limited to 'missing')
0 files changed, 0 insertions, 0 deletions