> > Does the parse_mount_string work for something like:
> > "host1 , host2       ,host3,  host4:/this/dir"?
> 
> Yes. I've verified that it does. It even works for relatively strange
> stuff like:
> 
> host1(1),host2:/this/dir host3(5):/that/dir
> 
> Unspecified weights get assigned the value 65535.

Actually, correction -- it will not work with the embedded whitespace in
your line. If that is removed then it will work. The parser interprets
whitespace to be a separate 'entry'.

Essentially, I break the line into whitespace separated chunks, and then
parse each part in turn. Having whitespace preceding or following the
commas will cause this not to work correctly.

Does the current parser handle this correctly?

-- Jeff


_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs

Reply via email to