diff options
| author | Kjetil Ørbekk <orbekk@pvv.ntnu.no> | 2008-09-11 14:49:19 +0200 |
|---|---|---|
| committer | Kjetil Ørbekk <orbekk@pvv.ntnu.no> | 2008-09-11 14:49:19 +0200 |
| commit | f8b57dc9a42599ec5bca136cfc75c59c7935322d (patch) | |
| tree | b53dc325aaa99ff00a57f7dc7858db3370e013a1 | |
| parent | ecd61bb4ca8b5c3224dba994f1ead8f21c9794b8 (diff) | |
- Fixed fsync("/.config")
- Done with TODO for v0.1 :)
| -rw-r--r-- | TODO | 2 | ||||
| -rwxr-xr-x | src/mfs_vnops.c | 6 |
2 files changed, 6 insertions, 2 deletions
@@ -2,7 +2,7 @@ v. 0.1 ~~~~~~ -* BUG: fsync errors with /.config +* Done? :-) v. 0.2(?) ~~~~~~~~~ diff --git a/src/mfs_vnops.c b/src/mfs_vnops.c index eeef2c6..a144576 100755 --- a/src/mfs_vnops.c +++ b/src/mfs_vnops.c @@ -257,8 +257,12 @@ static int mfs_fsync(const char *path, int datasync, struct fuse_file_info *fi) { int fd; - DEBUG("fsync path %s\n", path); + + if (strcmp(path, "/.config") == 0) { + return (0); + } + fd = (int)fi->fh; /* Fd is not valid, return fsync error. */ if (fd < 0) |
