diff options
author | Kjetil Ørbekk <orbekk@pvv.ntnu.no> | 2008-08-15 21:53:51 +0200 |
---|---|---|
committer | Kjetil Ørbekk <orbekk@pvv.ntnu.no> | 2008-08-15 21:53:51 +0200 |
commit | aaccd1929a253e6e687f50a810877bb9eb4ea8df (patch) | |
tree | aef13bf45ec4966bc5110da3266696e290007fa7 | |
parent | cbb7e3194b3bc66812f1b638bec0fb8403a9aacb (diff) |
- Reloading config when .config is changed
-rwxr-xr-x | src/mfs_vnops.c | 6 |
1 files changed, 6 insertions, 0 deletions
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); } |