From aaccd1929a253e6e687f50a810877bb9eb4ea8df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kjetil=20=C3=98rbekk?= Date: Fri, 15 Aug 2008 21:53:51 +0200 Subject: - Reloading config when .config is changed --- src/mfs_vnops.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/mfs_vnops.c b/src/mfs_vnops.c index e182be2..bfb4fe1 100755 --- a/src/mfs_vnops.c +++ b/src/mfs_vnops.c @@ -278,6 +278,12 @@ static int mfs_fsync(const char *path, int datasync, static int mfs_release(const char *path, struct fuse_file_info *fi) { DEBUG("release %s\n", path); + + if (strcmp(path, "/.config") == 0) { + /* Reload configuration file */ + mfs_reload_config(); + } + return (0); } -- cgit v1.2.3