> 
> Later, Juan "thinking in a way to filter params before reaching the
fs".
> 

Well, brain damaged simpe approach:

- add supermount option to trigger extended parsing (to maintain
compatibility), likev2 or version=2

- use -- to separate fs-specific options with first word indicating
fs-type 

like

dev=...,fs=auto,v2,--,iso9660=iocharset=...,ext2=<the same without
iocharset>


To keep option string shorter (is there limit?) you may even consider
using special default=... and 

fs+=... - add options to default ones
fs-=... - remove options from default ones
fs=... - unconditionally replace defaults

for usual supermount case it would result in

dev=...,fs=auto,v2,--,default=iocharset=koi8-r,...,--,ext2-=iocharset=ko
i8-r

The first two forms may even be sensibly repeated :-)

In kernel keep them as array of

char *fstype
char *opts

that gives you easy way to retrieve options for given fs-type.

-andrej

Reply via email to