From cc946170089b0ae80a12594fc2d8bddb6324cc00 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 17 Nov 2010 10:28:19 +0000 Subject: Log the device and inode numbers of directories and their entries while scanning them, to debug Toke's report of symlinks appearing to be mounts. --- bin/bbackupd/BackupClientDirectoryRecord.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/bin/bbackupd/BackupClientDirectoryRecord.cpp b/bin/bbackupd/BackupClientDirectoryRecord.cpp index a555085f..f1d5fa00 100644 --- a/bin/bbackupd/BackupClientDirectoryRecord.cpp +++ b/bin/bbackupd/BackupClientDirectoryRecord.cpp @@ -165,6 +165,11 @@ void BackupClientDirectoryRecord::SyncDirectory( strerror(errno)); return; } + + BOX_TRACE("Stat dir '" << rLocalPath << "' " + "found device/inode " << + dest_st.st_dev << "/" << dest_st.st_ino); + // Store inode number in map so directories are tracked // in case they're renamed { @@ -315,6 +320,11 @@ void BackupClientDirectoryRecord::SyncDirectory( continue; } + BOX_TRACE("Stat entry '" << filename << "' " + "found device/inode " << + file_st.st_dev << "/" << + file_st.st_ino); + if(file_st.st_dev != dest_st.st_dev) { if(!(rParams.mrContext.ExcludeDir( -- cgit v1.2.3