csync_vio: reuse the information from readdir in stat
authorOlivier Goffart <ogoffart@woboq.com>
Thu, 22 Oct 2015 00:29:27 +0000 (02:29 +0200)
committerOlivier Goffart <ogoffart@woboq.com>
Thu, 22 Oct 2015 16:46:41 +0000 (18:46 +0200)
commitf18b40f7e7890a659d20f1d3bbd3125a3089b612
tree5470ace7e34e70fab82647aaf63bcb35b5c8a15b
parent899f52be4f1168923a6ea4556cfdf9f55fc5a866
csync_vio: reuse the information from readdir in stat

On unix we don't safe much (otherwise csync would have been
designed differently).
On windows however, the readdir already fetch all the info, so we
can as well use it.

We still have to query for the file id but we might optimize that later
csync/src/csync.h
csync/src/csync_update.c
csync/src/vio/csync_vio_local_unix.c
csync/src/vio/csync_vio_local_win.c
csync/tests/csync_tests/check_csync_update.c
csync/tests/vio_tests/check_vio.c