diff options
author | Chris Wilson <chris+github@qwirx.com> | 2010-11-17 10:28:19 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2010-11-17 10:28:19 +0000 |
commit | cc946170089b0ae80a12594fc2d8bddb6324cc00 (patch) | |
tree | 65fcd2926a1771e75b4792328b962ae096fee0d8 /bin | |
parent | 79e0bbb3d773037371ff83563aba8ebdb20190e8 (diff) |
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.
Diffstat (limited to 'bin')
-rw-r--r-- | bin/bbackupd/BackupClientDirectoryRecord.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
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( |