repositories
/
deb_libnfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix usage message to match expected arguments
[deb_libnfs.git]
/
examples
/
fuse_nfs.c
diff --git
a/examples/fuse_nfs.c
b/examples/fuse_nfs.c
index fa30764d2e1e5a4f46dd3256c167e45047173482..23a4ce89d26158f4998c3af53632cc6ddd086029 100644
(file)
--- a/
examples/fuse_nfs.c
+++ b/
examples/fuse_nfs.c
@@
-31,8
+31,6
@@
#define discard_const(ptr) ((void *)((intptr_t)(ptr)))
#define discard_const(ptr) ((void *)((intptr_t)(ptr)))
-FILE *fh=NULL;
-
struct nfs_context *nfs = NULL;
static int fuse_nfs_getattr(const char *path, struct stat *stbuf)
struct nfs_context *nfs = NULL;
static int fuse_nfs_getattr(const char *path, struct stat *stbuf)
@@
-122,8
+120,6
@@
static int fuse_nfs_create(const char *path, mode_t mode, struct fuse_file_info
fi->fh = (uint64_t)nfsfh;
fi->fh = (uint64_t)nfsfh;
-//nfs_chown
-
return ret;
}
return ret;
}
@@
-195,7
+191,7
@@
static struct fuse_operations nfs_oper = {
void print_usage(char *name)
{
void print_usage(char *name)
{
- printf("Usage: %s [-?|--help] [-n|--nfs-share=nfs-url]
mountpoint
\n",
+ printf("Usage: %s [-?|--help] [-n|--nfs-share=nfs-url]
[-m|--mountpoint=mountpoint]
\n",
name);
exit(0);
}
name);
exit(0);
}