aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/db/update/Walk.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/db/update/Walk.cxx b/src/db/update/Walk.cxx
index 55a275748..44b10e2bd 100644
--- a/src/db/update/Walk.cxx
+++ b/src/db/update/Walk.cxx
@@ -152,6 +152,12 @@ update_directory_stat(Storage &storage, Directory &directory)
}
#endif
+/**
+ * Check the ancestors of the given #Directory and see if there's one
+ * with the same device/inode number, building a loop.
+ *
+ * @return 1 if a loop was found, 0 if not, -1 on I/O error
+ */
static int
FindAncestorLoop(Storage &storage, Directory *parent,
unsigned inode, unsigned device)