On Tue, 19 Apr 2005, Jeffrey Layton wrote:

> > > 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?

Given the history of that part of the code, who actually knows.
I spent quite a bit of time on it though so I hope so.

Ian

_______________________________________________
autofs mailing list
autofs@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/autofs

Reply via email to