Package: fusedav Version: 0.2-3 Severity: wishlist Tags: patch upstream This prevents a redundant PUT for apps which call fsync() before calling close().
>From fa8c3aca4178f7f6b8453dbfbcef34202b6ce96b Mon Sep 17 00:00:00 2001 From: Eric Wong <normalper...@yhbt.net> Date: Thu, 25 Oct 2012 20:31:12 +0000 Subject: [PATCH 11/13] filecache: clear modified flag after PUT sync
This prevents a redundant PUT for apps which call fsync() before calling close(). --- src/filecache.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/filecache.c b/src/filecache.c index f9b4075..f291e15 100644 --- a/src/filecache.c +++ b/src/filecache.c @@ -398,6 +398,7 @@ int file_cache_sync_unlocked(struct file_info *fi) { goto finish; } + fi->modified = 0; stat_cache_invalidate(fi->filename); dir_cache_invalidate_parent(fi->filename); -- 1.8.0.3.gdd57fab.dirty