db/update/Walk: document FindAncestorLoop()

This commit is contained in:
Max Kellermann 2014-02-09 10:45:38 +01:00
parent ace3f37af4
commit e29a8b3a9c

View File

@ -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)