List of possible options?

View: New views
3 Messages — Rating Filter:   Alert me  

List of possible options?

by Sven Utcke-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

is there a page somewhere describing all the possible options fuse
will take?

In particular, what I am after is to allow my FS to print a list of
all possible options, preferably differentiating between fuse's
general options and my own options, when encountering a -h or --help,
and to give the versions used on -V or --version, along the lines of:

 dcfs 1.2.3
 fuse 2.8.9
fuse API 2.6

Or somesuch.  What would be the easiest way to realise this?

Thanks

Sven

PS: I'm aware of
    http://sourceforge.net/apps/mediawiki/fuse/index.php?title=Option_parsing
    but not much anything else --- in particular I have no clue to get
    the list of options supported by the particular version of Fuse
    I'm linking against (keeping in mind that the version might
    change over time).
--
    _  ___  ___  ___
 __| |/ __|| __|/ __|                             The dCache File System
/ _` | (__ | _| \__ \              An archive file-system for PB of data
\__,_|\___||_|  |___/                    http://www.desy.de/~utcke/Data/

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
fuse-devel mailing list
fuse-devel@...
https://lists.sourceforge.net/lists/listinfo/fuse-devel

Re: List of possible options?

by Goswin von Brederlow-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sven Utcke <utcke+fuse@...> writes:

> Hi,
>
> is there a page somewhere describing all the possible options fuse
> will take?
>
> In particular, what I am after is to allow my FS to print a list of
> all possible options, preferably differentiating between fuse's
> general options and my own options, when encountering a -h or --help,
> and to give the versions used on -V or --version, along the lines of:
>
>  dcfs 1.2.3
>  fuse 2.8.9
> fuse API 2.6
>
> Or somesuch.  What would be the easiest way to realise this?
>
> Thanks
>
> Sven
>
> PS: I'm aware of
>     http://sourceforge.net/apps/mediawiki/fuse/index.php?title=Option_parsing
>     but not much anything else --- in particular I have no clue to get
>     the list of options supported by the particular version of Fuse
>     I'm linking against (keeping in mind that the version might
>     change over time).

You parse the options catching -h|--help. There you output your own
options and also add the -h|--help flag to the options passed down to
lib fuse. Libfuse then prints its own options as well.

Unfortunately that seems to only work with the high level interface.

MfG
        Goswin

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
fuse-devel mailing list
fuse-devel@...
https://lists.sourceforge.net/lists/listinfo/fuse-devel

Re: List of possible options?

by Sven Utcke-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Goswin,

> > is there a page somewhere describing all the possible options fuse
> > will take?
> >
> > In particular, what I am after is to allow my FS to print a list of
> > all possible options, preferably differentiating between fuse's
> > general options and my own options, when encountering a -h or --help,
> > and to give the versions used on -V or --version, along the lines of:
> >
> >  dcfs 1.2.3
> >  fuse 2.8.9
> > fuse API 2.6

> > PS: I'm aware of
> >     http://sourceforge.net/apps/mediawiki/fuse/index.php?title=Option_parsing
> >     but not much anything else --- in particular I have no clue to get
> >     the list of options supported by the particular version of Fuse
> >     I'm linking against (keeping in mind that the version might
> >     change over time).
>
> You parse the options catching -h|--help. There you output your own
> options and also add the -h|--help flag to the options passed down to
> lib fuse. Libfuse then prints its own options as well.
>
> Unfortunately that seems to only work with the high level interface.

I use the high-level interface (I'm mostly looking up paths in a
database, so this seemed the way to go), so no problem there.  But
that only prints

Options:
 -h                 print help
 -V                 print version
 -o opt[,opt...]   mount options
 -u                 unmount
 -q                 quiet
 -z                 lazy unmount

doesn't it?  I would like to also print what the actual opts allowed
are.  Or am I missing something obvious?

Thanks

Sven
--
    _  ___  ___  ___
 __| |/ __|| __|/ __|                             The dCache File System
/ _` | (__ | _| \__ \              An archive file-system for PB of data
\__,_|\___||_|  |___/                    http://www.desy.de/~utcke/Data/

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
fuse-devel mailing list
fuse-devel@...
https://lists.sourceforge.net/lists/listinfo/fuse-devel