2
/* This is part of um-ViewOS
3
* The user-mode implementation of OSVIEW -- A Process with a View
5
* v2fuseutils utility functions for fuse
7
* Copyright 2007 Renzo Davoli University of Bologna - Italy
9
* This program is free software; you can redistribute it and/or modify
10
* it under the terms of the GNU General Public License as published by
11
* the Free Software Foundation; either version 2 of the License.
13
* This program is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU General Public License for more details.
18
* You should have received a copy of the GNU General Public License along
19
* with this program; if not, write to the Free Software Foundation, Inc.,
20
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24
#ifndef __V2FUSEUTILS_H
25
#define __V2FUSEUTILS_H
36
/* standard usage for v2 fuse modules */
37
void v2f_usage(char *progname,struct fuse_operations *ops);
39
/* move source and mountpoint in front */
40
void v2f_rearrangeargv(int argc, char *argv[]);
42
/* check for ro, rw or rw+ options*/
43
int v2f_checkrorwplus(int argc, char *argv[]);
45
/* arg=output of v2f_checkrorwplus, it prints a warning
46
* when there is rw (or nothing) but not rw+
47
* returns 1 when the warning has been printed*/
48
int v2f_printwarning(int rorwplus);