[Pkg-owncloud-commits] [owncloud-client] 74/219: CSync: Show file size and inode during update traversal
Sandro Knauß
hefee-guest at moszumanska.debian.org
Sat Oct 11 14:43:11 UTC 2014
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch master
in repository owncloud-client.
commit 1909b465dc35a482238e749b98bb16e441b3bff4
Author: Markus Goetz <markus at woboq.com>
Date: Fri Sep 5 15:23:33 2014 +0200
CSync: Show file size and inode during update traversal
With the previous code, we saw those values only when the file/dir was also in the local DB
---
csync/src/csync_update.c | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/csync/src/csync_update.c b/csync/src/csync_update.c
index 761b371..0a4c736 100644
--- a/csync/src/csync_update.c
+++ b/csync/src/csync_update.c
@@ -432,11 +432,19 @@ int csync_walker(CSYNC *ctx, const char *file, const csync_vio_file_stat_t *fs,
switch (flag) {
case CSYNC_FTW_FLAG_FILE:
- CSYNC_LOG(CSYNC_LOG_PRIORITY_TRACE, "file: %s [file_id=%s]", file, fs->file_id);
+ if (ctx->current == REMOTE_REPLICA) {
+ CSYNC_LOG(CSYNC_LOG_PRIORITY_TRACE, "file: %s [file_id=%s size=%lld]", file, fs->file_id, fs->size);
+ } else {
+ CSYNC_LOG(CSYNC_LOG_PRIORITY_TRACE, "file: %s [inode=%" PRIu64 " size=%lld]", file, fs->inode, fs->size);
+ }
type = CSYNC_FTW_TYPE_FILE;
break;
case CSYNC_FTW_FLAG_DIR: /* enter directory */
- CSYNC_LOG(CSYNC_LOG_PRIORITY_TRACE, "directory: %s [file_id=%s]", file, fs->file_id);
+ if (ctx->current == REMOTE_REPLICA) {
+ CSYNC_LOG(CSYNC_LOG_PRIORITY_TRACE, "directory: %s [file_id=%s]", file, fs->file_id);
+ } else {
+ CSYNC_LOG(CSYNC_LOG_PRIORITY_TRACE, "directory: %s [inode=%" PRIu64 "]", file, fs->inode);
+ }
type = CSYNC_FTW_TYPE_DIR;
break;
case CSYNC_FTW_FLAG_NSTAT: /* not statable file */
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git
More information about the Pkg-owncloud-commits
mailing list