VFS modules / MSDFS tweaking
Michael Gerdts
Michael.Gerdts at usa.alcatel.com
Tue Jul 24 12:39:53 GMT 2001
On Tue, Jul 24, 2001 at 09:02:19AM +1000, Tim Potter wrote:
> It was hard to think of a nice syntax that would not confuse the
> parser though...
With the following, the share options' LHS and RHS as separated by the
first =, just like always. The RHS is then divided using (optionally
quoted) whitespace separated key-value pairs. Keys and values are
separated by an = with no spaces.
vfs options = key0=value0 key1="value 1" key2="value=2"
Ideally the smb.conf parser would then end up with something that looks
like the following. (Forgive the syntax... most of my recent coding has
been in non-C languages):
struct vfsopt_t {
char *key;
char *value;
} vfsopt;
vfsopt vfsoptions[] = { { "key0", "value0" },
{ "key1", "value 1" },
{ "key2", "value=2" },
NULL
};
Does that somehow break current syntax?
Mike
More information about the samba-technical
mailing list