]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
fsync instead of close(dup())?
authorsageweil <sageweil@29311d96-e01e-0410-9327-a35deaab8ce9>
Wed, 22 Aug 2007 23:58:27 +0000 (23:58 +0000)
committersageweil <sageweil@29311d96-e01e-0410-9327-a35deaab8ce9>
Wed, 22 Aug 2007 23:58:27 +0000 (23:58 +0000)
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1664 29311d96-e01e-0410-9327-a35deaab8ce9

trunk/fusetrace/fusetrace_ll.cc

index 3c9e2f598e45330c1720a50076f98c64532ffa5d..8a1648f6edc7b53faeb2e59b7cf3c488a237f990 100644 (file)
@@ -777,7 +777,8 @@ static void ft_ll_flush(fuse_req_t req, fuse_ino_t ino, struct fuse_file_info *f
     traceout << "ll_flush" << endl << fi->fh << endl;
     trace_lock.Unlock();
 
-    int res = close(dup(fi->fh));
+    int res = ::fdatasync(fi->fh);
+    //int res = ::close(dup(fi->fh));
     if (res >= 0)
        fuse_reply_err(req, 0);
     else