From 8ee553dac0297cfd75cbdd2d9cfdce37e22ef4ee Mon Sep 17 00:00:00 2001 From: Nikolaus Rath Date: Tue, 18 Oct 2016 21:23:22 -0700 Subject: fuse_new(): don't accept options that don't make sense for end-users Several options (use_ino, etc) depend on the file system implementation. Allowing them to be set from the command line makes no sense. --- example/passthrough.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'example/passthrough.c') diff --git a/example/passthrough.c b/example/passthrough.c index d3d0fde..4034327 100644 --- a/example/passthrough.c +++ b/example/passthrough.c @@ -48,6 +48,14 @@ #include #endif +static void *xmp_init(struct fuse_conn_info *conn, + struct fuse_config *cfg) +{ + (void) conn; + cfg->use_ino = 1; + return NULL; +} + static int xmp_getattr(const char *path, struct stat *stbuf, struct fuse_file_info *fi) { @@ -401,6 +409,7 @@ static int xmp_removexattr(const char *path, const char *name) #endif /* HAVE_SETXATTR */ static struct fuse_operations xmp_oper = { + .init = xmp_init, .getattr = xmp_getattr, .access = xmp_access, .readlink = xmp_readlink, -- cgit v1.2.3