From 1d9f26f3736cc4703c2e988d87f5dd119bcd736d Mon Sep 17 00:00:00 2001 From: Nikolaus Rath Date: Thu, 20 Oct 2016 15:45:32 -0700 Subject: Turn fuse_operations.nopath_flag into fuse_config.nullpath_ok Modifying struct fuse_config in the init() handler is the canonical way to adjust file-system implementation specific settings. There is no need to have flags in struct fuse_operations. --- lib/modules/iconv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/modules/iconv.c') diff --git a/lib/modules/iconv.c b/lib/modules/iconv.c index b0453be..5d1e959 100644 --- a/lib/modules/iconv.c +++ b/lib/modules/iconv.c @@ -561,6 +561,8 @@ static void *iconv_init(struct fuse_conn_info *conn, { struct iconv *ic = iconv_get(); fuse_fs_init(ic->next, conn, cfg); + /* Don't touch cfg->nullpath_ok, we can work with + either */ return ic; } @@ -612,8 +614,6 @@ static const struct fuse_operations iconv_oper = { .lock = iconv_lock, .flock = iconv_flock, .bmap = iconv_bmap, - - .flag_nopath = 1, }; static const struct fuse_opt iconv_opts[] = { -- cgit v1.2.3